diff options
author | Francesco Gazzetta <fgaz@fgaz.me> | 2023-09-09 18:44:54 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-09 18:44:54 +0000 |
commit | e72d1a3ac4ed85c4acd33259dc8e551d7c108a72 (patch) | |
tree | e402e5cc9a97c28f4ff2135d382392d0204fd3fd /pkgs/by-name | |
parent | a9906d685a1d4e5bcd7138d8d7ac5720e2c009cc (diff) | |
parent | 19aa8c95bd09ade77437835e2ce949ce062d0673 (diff) |
Merge pull request #253801 from fgaz/passes/init
passes: init at 0.8
Diffstat (limited to 'pkgs/by-name')
-rw-r--r-- | pkgs/by-name/pa/passes/package.nix | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/pkgs/by-name/pa/passes/package.nix b/pkgs/by-name/pa/passes/package.nix new file mode 100644 index 0000000000000..35a8a94a9fe10 --- /dev/null +++ b/pkgs/by-name/pa/passes/package.nix @@ -0,0 +1,67 @@ +{ lib +, stdenv +, fetchFromGitHub +, appstream-glib +, blueprint-compiler +, desktop-file-utils +, gettext +, gtk4 +, libadwaita +, meson +, ninja +, pkg-config +, python3 +, wrapGAppsHook4 +, zint +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "passes"; + version = "0.8"; + + src = fetchFromGitHub { + owner = "pablo-s"; + repo = "passes"; + rev = "v${finalAttrs.version}"; + hash = "sha256-SIJLBVWyW9+Hzb6ebfUnBfUuvNmYBm9ojKrnFOS3BGc="; + }; + + postPatch = '' + substituteInPlace src/model/meson.build \ + --replace /app/lib ${zint}/lib + substituteInPlace src/view/window.blp \ + --replace reveal_flap reveal-flap + substituteInPlace build-aux/meson/postinstall.py \ + --replace gtk-update-icon-cache gtk4-update-icon-cache + patchShebangs build-aux/meson/postinstall.py + ''; + + strictDeps = true; + + nativeBuildInputs = [ + appstream-glib + blueprint-compiler + desktop-file-utils + gettext + meson + ninja + pkg-config + (python3.withPackages (pp: [pp.pygobject3])) + wrapGAppsHook4 + ]; + + buildInputs = [ + gtk4 + libadwaita + zint + ]; + + meta = with lib; { + description = "A digital pass manager"; + homepage = "https://github.com/pablo-s/passes"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ fgaz ]; + platforms = platforms.all; + broken = stdenv.isDarwin; # Crashes + }; +}) |