Files
nix-files/pkgs/by-name/megapixels-next/package.nix

78 lines
1.4 KiB
Nix

{
stdenv,
feedbackd,
fetchFromGitLab,
gtk4,
lib,
libdng,
libepoxy,
libmegapixels,
libpulseaudio,
meson,
ninja,
pkg-config,
unstableGitUpdater,
wrapGAppsHook4,
xorg,
zbar,
# optional runtime dependencies, used for post-processing .dng -> .jpg
exiftool,
graphicsmagick,
libraw,
}:
let
runtimePath = lib.makeBinPath [ libraw graphicsmagick exiftool ];
in
stdenv.mkDerivation {
pname = "megapixels-next";
version = "2.0.0-alpha1-unstable-2025-02-11";
src = fetchFromGitLab {
owner = "megapixels-org";
repo = "Megapixels";
rev = "2f2929800b005820a21da8f3e7cc4ba0fe51fe1d";
hash = "sha256-ehPq1UwhYv4ncAhnVjDMgGT255ZdliMw6nMzYE5qWnM=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
wrapGAppsHook4
];
buildInputs = [
feedbackd
gtk4
libdng
libepoxy
libmegapixels
libpulseaudio
xorg.libXrandr
zbar
];
postInstall = ''
glib-compile-schemas $out/share/glib-2.0/schemas
'';
preFixup = ''
gappsWrapperArgs+=(
--suffix PATH : ${lib.escapeShellArg runtimePath}
)
'';
strictDeps = true;
passthru.updateScript = unstableGitUpdater { };
meta = with lib; {
description = "The Linux-phone camera application";
homepage = "https://gitlab.com/megapixels-org/Megapixels";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ colinsane ];
platforms = platforms.linux;
mainProgram = "megapixels";
};
}