16 stdenv.mkDerivation (finalAttrs: {
20 src = fetchFromGitLab {
21 domain = "gitlab.gnome.org";
24 rev = finalAttrs.version;
25 hash = "sha256-mthXtTlyrIChaKKwKosTsV1hK9OQ/zLScjrq6D3CRsg=";
28 patches = [ ./0001-fix-E0716.patch ];
31 patchShebangs --build build-aux/{checks.sh,read-manifest.py}
34 cargoDeps = rustPlatform.fetchCargoTarball {
35 inherit (finalAttrs) src;
36 hash = "sha256-wCJTm0W+g3+O1t1fR4maqJoxpPM0NeJG7d54MMAH33c=";
46 rustPlatform.cargoSetupHook
50 buildInputs = [ libadwaita ];
52 # Workaround for the gettext-sys issue
53 # https://github.com/Koka/gettext-rs/issues/114
54 env.NIX_CFLAGS_COMPILE = lib.optionalString (
55 stdenv.cc.isClang && lib.versionAtLeast stdenv.cc.version "16"
56 ) "-Wno-error=incompatible-function-pointer-types";
59 updateScript = nix-update-script { };
63 description = "View and edit your apps’ keys";
64 homepage = "https://gitlab.gnome.org/sophie-h/key-rack";
65 license = lib.licenses.gpl3Plus;
66 maintainers = with lib.maintainers; [ getchoo ];
67 mainProgram = "key-rack";
68 platforms = lib.platforms.linux;