diff options
author | Aleksana <me@aleksana.moe> | 2024-04-27 15:00:08 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-27 15:00:08 +0800 |
commit | 590959643e3e9013642c45f4978e949f8f1a32d8 (patch) | |
tree | 9455b8ad438c0e2984d92ddf19d934cd4bdb6674 /pkgs/by-name/gt | |
parent | 28df8e01ea17d9e8437b7b7f7e654ef86137b467 (diff) | |
parent | fb5cd37b6cb0da81f59aee14b9638f61eff3e95a (diff) |
Merge pull request #305361 from Aleksanaa/gtklock
gtklock: 2.1.0 -> 3.0.0; gtk-session-lock: init at 0.2.0
Diffstat (limited to 'pkgs/by-name/gt')
-rw-r--r-- | pkgs/by-name/gt/gtk-session-lock/package.nix | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/pkgs/by-name/gt/gtk-session-lock/package.nix b/pkgs/by-name/gt/gtk-session-lock/package.nix new file mode 100644 index 0000000000000..713c9aa3c7603 --- /dev/null +++ b/pkgs/by-name/gt/gtk-session-lock/package.nix @@ -0,0 +1,57 @@ +{ lib +, stdenv +, fetchFromGitHub +, meson +, ninja +, pkg-config +, gobject-introspection +, vala +, gtk3 +, wayland-scanner +, wayland +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "gtk-session-lock"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "Cu3PO42"; + repo = "gtk-session-lock"; + rev = "v${finalAttrs.version}"; + hash = "sha256-SHKAYmdev08oRB/V6UpfSFqYwplF59IaNSOoWcACPig="; + }; + + outputs = [ "out" "dev" ]; + + nativeBuildInputs = [ + meson + ninja + pkg-config + gobject-introspection + vala + wayland-scanner + ]; + + buildInputs = [ + gtk3 + wayland + ]; + + # Tests are not fully prepared, but may be enabled in later versions + doCheck = false; + + strictDeps = true; + + meta = { + description = "A library to use GTK 3 to build screen lockers using ext-session-lock-v1 protocol"; + homepage = "https://github.com/Cu3PO42/gtk-session-lock"; + # The author stated "GTK Session Lock is licensed under the GNU General + # Public License version 3.0 or any later version approved by me (Cu3PO42)." + # Since we don't know if the author will approve later versions, we mark gpl3Only + license = with lib.licenses; [ gpl3Only ]; + maintainers = with lib.maintainers; [ aleksana ]; + platforms = lib.platforms.unix; + badPlatforms = lib.platforms.darwin; + }; +}) |