Make fiv work on macOS when run from result dir

This commit is contained in:
Přemysl Eric Janouch 2023-06-29 20:32:43 +02:00
parent badd347b22
commit 0444cbcddf
Signed by: p
GPG Key ID: A0420B94F92B9493
2 changed files with 11 additions and 1 deletions

View File

@ -7,6 +7,7 @@ pkgs.stdenv.mkDerivation rec {
version = "master";
nativeBuildInputs = with pkgs; [
wrapGAppsHook
meson
pkg-config
ninja
@ -46,6 +47,9 @@ pkgs.stdenv.mkDerivation rec {
# Up for consideration: don't rely on shebangs at all.
patchPhase = ''
patchShebangs .
# https://gitlab.gnome.org/GNOME/glib/-/issues/30240
ulimit -n 8192
'';
mesonFlags = [
@ -67,6 +71,12 @@ pkgs.stdenv.mkDerivation rec {
"-Dgdk-pixbuf=disabled"
];
preFixup = ''
gappsWrapperArgs+=(
--prefix PATH : $out/bin:${pkgs.lib.makeBinPath [ pkgs.exiftool ]}
)
'';
doCheck = true;
meta = with pkgs.lib; {

View File

@ -7,9 +7,9 @@ pkgs.stdenv.mkDerivation rec {
version = "master";
nativeBuildInputs = with pkgs; [
wrapGAppsHook
cmake
pkg-config
wrapGAppsHook
];
buildInputs = with pkgs; [