mirror of
https://github.com/hyprwm/hyprpaper.git
synced 2024-11-16 22:25:59 +01:00
87 lines
1.3 KiB
Nix
87 lines
1.3 KiB
Nix
|
{
|
||
|
lib,
|
||
|
stdenv,
|
||
|
pkg-config,
|
||
|
cmake,
|
||
|
ninja,
|
||
|
cairo,
|
||
|
fribidi,
|
||
|
libdatrie,
|
||
|
libjpeg,
|
||
|
libselinux,
|
||
|
libsepol,
|
||
|
libthai,
|
||
|
pango,
|
||
|
pcre,
|
||
|
utillinux,
|
||
|
wayland,
|
||
|
wayland-protocols,
|
||
|
wayland-scanner,
|
||
|
libXdmcp,
|
||
|
debug ? false,
|
||
|
version ? "git",
|
||
|
}:
|
||
|
stdenv.mkDerivation {
|
||
|
pname = "hyprpaper" + lib.optionalString debug "-debug";
|
||
|
inherit version;
|
||
|
src = ../.;
|
||
|
|
||
|
nativeBuildInputs = [
|
||
|
cmake
|
||
|
ninja
|
||
|
pkg-config
|
||
|
];
|
||
|
|
||
|
buildInputs = [
|
||
|
cairo
|
||
|
fribidi
|
||
|
libdatrie
|
||
|
libjpeg
|
||
|
libselinux
|
||
|
libsepol
|
||
|
libthai
|
||
|
pango
|
||
|
pcre
|
||
|
wayland
|
||
|
wayland-protocols
|
||
|
wayland-scanner
|
||
|
libXdmcp
|
||
|
utillinux
|
||
|
];
|
||
|
|
||
|
configurePhase = ''
|
||
|
runHook preConfigure
|
||
|
|
||
|
make protocols
|
||
|
|
||
|
runHook postConfigure
|
||
|
'';
|
||
|
|
||
|
buildPhase = ''
|
||
|
runHook preBuild
|
||
|
|
||
|
make release
|
||
|
|
||
|
runHook postBuild
|
||
|
'';
|
||
|
|
||
|
installPhase = ''
|
||
|
runHook preInstall
|
||
|
|
||
|
mkdir -p $out/{bin,share/licenses}
|
||
|
|
||
|
install -Dm755 build/hyprpaper -t $out/bin
|
||
|
install -Dm644 LICENSE -t $out/share/licenses/hyprpaper
|
||
|
|
||
|
runHook postInstall
|
||
|
'';
|
||
|
|
||
|
meta = with lib; {
|
||
|
homepage = "https://github.com/hyprwm/hyprpaper";
|
||
|
description = "A blazing fast wayland wallpaper utility with IPC controls";
|
||
|
license = licenses.bsd3;
|
||
|
platforms = platforms.linux;
|
||
|
mainProgram = "hyprpaper";
|
||
|
};
|
||
|
}
|