Merge pull request #294981 from wegank/nomacs-refactor

nomacs: refactor
This commit is contained in:
Rick van Schijndel 2024-03-11 18:35:03 +01:00 committed by GitHub
commit 63dc52bdbf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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
'';