megapixels: init at 0.14.0
This commit is contained in:
parent
011d073393
commit
1ae6b4c2ee
|
@ -0,0 +1,55 @@
|
||||||
|
{ stdenv
|
||||||
|
, lib
|
||||||
|
, fetchgit
|
||||||
|
, meson
|
||||||
|
, ninja
|
||||||
|
, pkg-config
|
||||||
|
, wrapGAppsHook
|
||||||
|
, gtk3
|
||||||
|
, gnome3
|
||||||
|
, tiffSupport ? true
|
||||||
|
, libraw
|
||||||
|
, jpgSupport ? true
|
||||||
|
, imagemagick
|
||||||
|
, exiftool
|
||||||
|
}:
|
||||||
|
|
||||||
|
assert jpgSupport -> tiffSupport;
|
||||||
|
|
||||||
|
let
|
||||||
|
inherit (lib) makeBinPath optional optionals optionalString;
|
||||||
|
runtimePath = makeBinPath (
|
||||||
|
optional tiffSupport libraw
|
||||||
|
++ optionals jpgSupport [ imagemagick exiftool ]
|
||||||
|
);
|
||||||
|
in
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "megapixels";
|
||||||
|
version = "0.14.0";
|
||||||
|
|
||||||
|
src = fetchgit {
|
||||||
|
url = "https://git.sr.ht/~martijnbraam/megapixels";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "136rv9sx0kgfkpqn5s90j7j4qhb8h04p14g5qhqshb89kmmsmxiw";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ meson ninja pkg-config wrapGAppsHook ];
|
||||||
|
|
||||||
|
buildInputs = [ gtk3 gnome3.adwaita-icon-theme ]
|
||||||
|
++ optional tiffSupport libraw
|
||||||
|
++ optional jpgSupport imagemagick;
|
||||||
|
|
||||||
|
preFixup = optionalString (tiffSupport || jpgSupport) ''
|
||||||
|
gappsWrapperArgs+=(
|
||||||
|
--prefix PATH : ${runtimePath}
|
||||||
|
)
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "GTK3 camera application using raw v4l2 and media-requests";
|
||||||
|
homepage = "https://sr.ht/~martijnbraam/Megapixels";
|
||||||
|
license = licenses.gpl3Only;
|
||||||
|
maintainers = with maintainers; [ OPNA2608 ];
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
|
@ -23120,6 +23120,8 @@ in
|
||||||
|
|
||||||
mediathekview = callPackage ../applications/video/mediathekview { };
|
mediathekview = callPackage ../applications/video/mediathekview { };
|
||||||
|
|
||||||
|
megapixels = callPackage ../applications/graphics/megapixels { };
|
||||||
|
|
||||||
meteo = callPackage ../applications/networking/weather/meteo { };
|
meteo = callPackage ../applications/networking/weather/meteo { };
|
||||||
|
|
||||||
meld = callPackage ../applications/version-management/meld { };
|
meld = callPackage ../applications/version-management/meld { };
|
||||||
|
|
Loading…
Reference in New Issue