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=";
|
||||
};
|
||||
|
||||
# Because some unknown reason split outputs is breaking on Darwin
|
||||
outputs = if stdenv.isDarwin
|
||||
then [ "out" ]
|
||||
else [ "out" "man" ];
|
||||
outputs = [ "out" ]
|
||||
# man pages are not installed on Darwin, see cmake/{Mac,Unix}BuildTarget.cmake
|
||||
++ lib.optionals (!stdenv.isDarwin) [ "man" ];
|
||||
|
||||
sourceRoot = "${finalAttrs.src.name}/ImageLounge";
|
||||
|
||||
|
@ -58,7 +57,8 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
];
|
||||
|
||||
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
|
||||
'';
|
||||
|
||||
|
|
Loading…
Reference in a new issue