Merge pull request #294981 from wegank/nomacs-refactor
nomacs: refactor
This commit is contained in:
commit
63dc52bdbf
1 changed files with 5 additions and 5 deletions
|
@ -22,10 +22,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
hash = "sha256-jHr7J0X1v2n/ZK0y3b/XPDISk7e08VWS6nicJU4fKKY=";
|
hash = "sha256-jHr7J0X1v2n/ZK0y3b/XPDISk7e08VWS6nicJU4fKKY=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# Because some unknown reason split outputs is breaking on Darwin
|
outputs = [ "out" ]
|
||||||
outputs = if stdenv.isDarwin
|
# man pages are not installed on Darwin, see cmake/{Mac,Unix}BuildTarget.cmake
|
||||||
then [ "out" ]
|
++ lib.optionals (!stdenv.isDarwin) [ "man" ];
|
||||||
else [ "out" "man" ];
|
|
||||||
|
|
||||||
sourceRoot = "${finalAttrs.src.name}/ImageLounge";
|
sourceRoot = "${finalAttrs.src.name}/ImageLounge";
|
||||||
|
|
||||||
|
@ -58,7 +57,8 @@ stdenv.mkDerivation (finalAttrs: {
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = lib.optionalString stdenv.isDarwin ''
|
postInstall = lib.optionalString stdenv.isDarwin ''
|
||||||
mkdir -p $out/lib
|
mkdir -p $out/{Applications,lib}
|
||||||
|
mv $out/nomacs.app $out/Applications/nomacs.app
|
||||||
mv $out/libnomacsCore.dylib $out/lib/libnomacsCore.dylib
|
mv $out/libnomacsCore.dylib $out/lib/libnomacsCore.dylib
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue