gtk4-layer-shell: init at 1.0.1

This commit is contained in:
Gabriel Arazas 2023-08-05 16:46:22 +08:00
parent f60d28ba2a
commit 1493a616cc
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
2 changed files with 76 additions and 0 deletions

View File

@ -17,6 +17,7 @@ let
distant = callPackage ./distant.nix { };
gnome-search-provider-recoll =
callPackage ./gnome-search-provider-recoll.nix { };
gtk4-layer-shell = callPackage ./gtk4-layer-shell { };
hush-shell = callPackage ./hush-shell.nix { };
kiwmi = callPackage ./kiwmi { };
lwp = callPackage ./lwp { };

View File

@ -0,0 +1,75 @@
{ stdenv
, lib
, fetchFromGitHub
, meson
, ninja
, pkg-config
, wayland
, wayland-protocols
, gtk4
, gobject-introspection
, gtk-doc
, docbook-xsl-nons
, docbook_xml_dtd_43
, vala
, python3
, luajit
}:
stdenv.mkDerivation rec {
pname = "gtk4-layer-shell";
version = "1.0.1";
outputs = [ "out" "dev" "devdoc" ];
outputBin = "devdoc";
src = fetchFromGitHub {
owner = "wmww";
repo = "gtk4-layer-shell";
rev = "v${version}";
hash = "sha256-MG/YW4AhC2joUX93Y/pzV4s8TrCo5Z/I3hAT70jW8dw=";
};
# It is encouraged to use these flags anyways.
mesonFlags = [
"-Dexamples=true"
"-Ddocs=true"
];
nativeBuildInputs = [
meson
ninja
pkg-config
gobject-introspection
gtk-doc
docbook-xsl-nons
docbook_xml_dtd_43
];
buildInputs = [
wayland
wayland-protocols
gtk4
vala
];
checkInputs = [
python3
(luajit.withPackages (ps: with ps; [ lgi ]))
];
meta = with lib; {
homepage = "https://github.com/wmww/gtk4-layer-shell";
license = licenses.mit;
description = "Library to create desktop components using Layer Shell protocol and GTK4";
longDescription = ''
gtk4-layer-shell is a library to create desktop components using Layer
Shell protocol and GTK4. It can used to create components such as panels,
wallpapers, and notifications. This library is written in C and
compatible with C++ and with other languages through GObject
introspection files.
'';
maintainers = with maintainers; [ foo-dogsquared ];
platforms = platforms.linux;
};
}