uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
71
pkgs/applications/graphics/megapixels/default.nix
Normal file
71
pkgs/applications/graphics/megapixels/default.nix
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitLab
|
||||
, glib
|
||||
, meson
|
||||
, ninja
|
||||
, pkg-config
|
||||
, wrapGAppsHook4
|
||||
, libepoxy
|
||||
, gtk4
|
||||
, zbar
|
||||
, tiffSupport ? true
|
||||
, libraw
|
||||
, jpgSupport ? true
|
||||
, graphicsmagick
|
||||
, exiftool
|
||||
}:
|
||||
|
||||
assert jpgSupport -> tiffSupport;
|
||||
|
||||
let
|
||||
inherit (lib) makeBinPath optional optionals optionalString;
|
||||
runtimePath = makeBinPath (
|
||||
optional tiffSupport libraw
|
||||
++ optionals jpgSupport [ graphicsmagick exiftool ]
|
||||
);
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "megapixels";
|
||||
version = "1.4.3";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
owner = "postmarketOS";
|
||||
repo = "megapixels";
|
||||
rev = version;
|
||||
hash = "sha256-UHJ3Fayf+lS3nRuuhHHLN6mbHfHIPssWkghPMPF5ECg=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
glib
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
wrapGAppsHook4
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libepoxy
|
||||
gtk4
|
||||
zbar
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
glib-compile-schemas $out/share/glib-2.0/schemas
|
||||
'';
|
||||
|
||||
preFixup = optionalString (tiffSupport || jpgSupport) ''
|
||||
gappsWrapperArgs+=(
|
||||
--prefix PATH : ${lib.escapeShellArg runtimePath}
|
||||
)
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "GTK4 camera application that knows how to deal with the media request api";
|
||||
homepage = "https://gitlab.com/postmarketOS/megapixels";
|
||||
changelog = "https://gitlab.com/postmarketOS/megapixels/-/tags/${version}";
|
||||
license = licenses.gpl3Only;
|
||||
maintainers = with maintainers; [ OPNA2608 dotlambda ];
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue