hyprpaper/nix/default.nix
Mihai Fufezan f57d991e3a
Makefile: remove
No longer used. Functionality moved to CMake.
2024-03-12 22:24:10 +02:00

75 lines
1.1 KiB
Nix

{
lib,
stdenv,
pkg-config,
cmake,
cairo,
expat,
file,
fribidi,
hyprlang,
libdatrie,
libGL,
libjpeg,
libselinux,
libsepol,
libthai,
libwebp,
pango,
pcre,
pcre2,
util-linux,
wayland,
wayland-protocols,
wayland-scanner,
libXdmcp,
debug ? false,
version ? "git",
}:
stdenv.mkDerivation {
pname = "hyprpaper" + lib.optionalString debug "-debug";
inherit version;
src = ../.;
cmakeBuildType =
if debug
then "Debug"
else "Release";
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
cairo
expat
file
fribidi
hyprlang
libdatrie
libGL
libjpeg
libselinux
libsepol
libthai
libwebp
pango
pcre
pcre2
wayland
wayland-protocols
wayland-scanner
libXdmcp
util-linux
];
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";
};
}