forked from mirrors/nixpkgs
cutemaze: unbreak on darwin
This commit is contained in:
parent
a8fa8c2e90
commit
a4122c898c
|
@ -26,14 +26,20 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
qtbase
|
qtbase
|
||||||
qtwayland
|
|
||||||
qtsvg
|
qtsvg
|
||||||
|
] ++ lib.optionals stdenv.isLinux [
|
||||||
|
qtwayland
|
||||||
];
|
];
|
||||||
|
|
||||||
postInstall = lib.optionalString stdenv.isDarwin ''
|
installPhase = if stdenv.isDarwin then ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
mkdir -p $out/Applications
|
mkdir -p $out/Applications
|
||||||
mv CuteMaze.app $out/Applications
|
mv CuteMaze.app $out/Applications
|
||||||
'';
|
makeWrapper $out/Applications/CuteMaze.app/Contents/MacOS/CuteMaze $out/bin/cutemaze
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'' else null;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
changelog = "https://github.com/gottcode/cutemaze/blob/v${version}/ChangeLog";
|
changelog = "https://github.com/gottcode/cutemaze/blob/v${version}/ChangeLog";
|
||||||
|
|
Loading…
Reference in a new issue