nixpkgs/pkgs/by-name/gt/gtk-session-lock/package.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

58 lines
1.3 KiB
Nix

{ 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 = "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;
};
})