Robert Schütz 3 years ago committed by GitHub
parent a195450875
commit c9494b6fe0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 18
      pkgs/applications/graphics/megapixels/default.nix

@ -5,8 +5,8 @@
, ninja , ninja
, pkg-config , pkg-config
, wrapGAppsHook , wrapGAppsHook
, gtk3 , epoxy
, gnome , gtk4
, zbar , zbar
, tiffSupport ? true , tiffSupport ? true
, libraw , libraw
@ -26,20 +26,22 @@ let
in in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "megapixels"; pname = "megapixels";
version = "0.16.0"; version = "1.0.1";
src = fetchFromSourcehut { src = fetchFromSourcehut {
owner = "~martijnbraam"; owner = "~martijnbraam";
repo = "megapixels"; repo = "megapixels";
rev = version; rev = version;
sha256 = "0z7sx76x18yqf7carq6mg9lib0zbz0yrd1dsg9qd6hbf5niqis37"; sha256 = "0k9a5dpr5z0g7ngbhk4j22sbs1ffxiwg8wmbzgggdc9xvwmkgppr";
}; };
nativeBuildInputs = [ meson ninja pkg-config wrapGAppsHook ]; nativeBuildInputs = [ meson ninja pkg-config wrapGAppsHook ];
buildInputs = [ gtk3 gnome.adwaita-icon-theme zbar ] buildInputs = [
++ optional tiffSupport libraw epoxy
++ optional jpgSupport graphicsmagick; gtk4
zbar
];
preFixup = optionalString (tiffSupport || jpgSupport) '' preFixup = optionalString (tiffSupport || jpgSupport) ''
gappsWrapperArgs+=( gappsWrapperArgs+=(
@ -52,7 +54,7 @@ stdenv.mkDerivation rec {
homepage = "https://sr.ht/~martijnbraam/Megapixels"; homepage = "https://sr.ht/~martijnbraam/Megapixels";
changelog = "https://git.sr.ht/~martijnbraam/megapixels/refs/${version}"; changelog = "https://git.sr.ht/~martijnbraam/megapixels/refs/${version}";
license = licenses.gpl3Only; license = licenses.gpl3Only;
maintainers = with maintainers; [ OPNA2608 ]; maintainers = with maintainers; [ OPNA2608 dotlambda ];
platforms = platforms.linux; platforms = platforms.linux;
}; };
} }

Loading…
Cancel
Save