nixpkgs/pkgs/development/libraries/gtk-layer-shell/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

82 lines
1.7 KiB
Nix
Raw Normal View History

2023-01-19 01:57:23 +00:00
{ lib
, stdenv
2019-12-28 15:08:46 +00:00
, fetchFromGitHub
2023-01-19 01:57:23 +00:00
, fetchpatch
2019-12-28 15:08:46 +00:00
, meson
, ninja
, pkg-config
, gtk-doc
, docbook-xsl-nons
, docbook_xml_dtd_43
2023-01-19 01:57:23 +00:00
, wayland-scanner
2019-12-28 15:08:46 +00:00
, wayland
, gtk3
, gobject-introspection
2022-12-30 09:11:38 +00:00
, vala
2019-12-28 15:08:46 +00:00
}:
stdenv.mkDerivation rec {
pname = "gtk-layer-shell";
2022-12-30 09:11:38 +00:00
version = "0.8.0";
2019-12-28 15:08:46 +00:00
outputs = [ "out" "dev" "devdoc" ];
2022-05-22 08:25:51 +00:00
outputBin = "devdoc"; # for demo
2019-12-28 15:08:46 +00:00
src = fetchFromGitHub {
owner = "wmww";
repo = "gtk-layer-shell";
rev = "v${version}";
2022-12-30 09:11:38 +00:00
sha256 = "sha256-Z7jPYLKgkwMNXu80aaZ2vNj57LbN+X2XqlTTq6l0wTE=";
2019-12-28 15:08:46 +00:00
};
2023-01-19 01:57:23 +00:00
patches = [
# https://github.com/wmww/gtk-layer-shell/pull/146
# Mark wayland-scanner as a build-time dependency
(fetchpatch {
url = "https://github.com/wmww/gtk-layer-shell/commit/6fd16352e5b35fefc91aa44e73671addaaa95dfc.patch";
hash = "sha256-U/mxmcRcZnsF0fvWW0axo6ajqW40NuOzNIAzoLCboRM=";
})
# https://github.com/wmww/gtk-layer-shell/pull/147
# Remove redundant dependency check for gtk-doc
(fetchpatch {
url = "https://github.com/wmww/gtk-layer-shell/commit/124ccc2772d5ecbb40b54872c22e594c74bd39bc.patch";
hash = "sha256-WfrWe9UJCp1RvVJhURAxGw4jzqPjoaP6182jVdoEAQs=";
})
];
strictDeps = true;
depsBuildBuild = [
pkg-config
];
2019-12-28 15:08:46 +00:00
nativeBuildInputs = [
meson
ninja
pkg-config
gobject-introspection
gtk-doc
docbook-xsl-nons
docbook_xml_dtd_43
2022-12-30 09:11:38 +00:00
vala
2023-01-19 01:57:23 +00:00
wayland-scanner
2019-12-28 15:08:46 +00:00
];
buildInputs = [
wayland
gtk3
2019-12-28 15:08:46 +00:00
];
mesonFlags = [
"-Ddocs=true"
2022-05-22 08:25:51 +00:00
"-Dexamples=true"
2019-12-28 15:08:46 +00:00
];
meta = with lib; {
2019-12-28 15:08:46 +00:00
description = "A library to create panels and other desktop components for Wayland using the Layer Shell protocol";
license = licenses.lgpl3Plus;
2019-12-28 15:08:46 +00:00
maintainers = with maintainers; [ eonpatapon ];
platforms = platforms.linux;
2019-12-28 15:08:46 +00:00
};
}