nixpkgs/pkgs/development/libraries/libdecor/default.nix
2024-01-17 21:53:04 +01:00

59 lines
985 B
Nix

{ stdenv
, lib
, fetchFromGitLab
, pkg-config
, meson
, ninja
, wayland
, wayland-protocols
, wayland-scanner
, cairo
, dbus
, pango
, gtk3
}:
stdenv.mkDerivation rec {
pname = "libdecor";
version = "0.2.2";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "libdecor";
repo = "libdecor";
rev = version;
hash = "sha256-mID19uHXFKJUZtQsSOXjRdz541YVjMxmSHVa+DlkPRc=";
};
outputs = [ "out" "dev" ];
strictDeps = true;
mesonFlags = [
(lib.mesonBool "demo" false)
];
nativeBuildInputs = [
meson
ninja
pkg-config
wayland-scanner
];
buildInputs = [
wayland
wayland-protocols
cairo
dbus
pango
gtk3
];
meta = with lib; {
homepage = "https://gitlab.freedesktop.org/libdecor/libdecor";
description = "Client-side decorations library for Wayland clients";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ artturin ];
};
}