about summary refs log tree commit diff
path: root/pkgs/games/space-cadet-pinball
diff options
context:
space:
mode:
authorhqurve <hqurve@outlook.com>2022-04-01 07:13:52 -0400
committerhqurve <hqurve@outlook.com>2022-04-01 07:13:52 -0400
commit00bbc3f18e95e69b579594a3f022cc0bce42d11e (patch)
treeadad16947ccbec9e9a30e6caa0e1a53dacd59f08 /pkgs/games/space-cadet-pinball
parentd066c1229893851c997d2b79b5747d09ff4c0b8e (diff)
Revert "space-cadet-pinball: fix darwin build"
This reverts commit d066c1229893851c997d2b79b5747d09ff4c0b8e.
Diffstat (limited to 'pkgs/games/space-cadet-pinball')
-rw-r--r--pkgs/games/space-cadet-pinball/default.nix13
1 files changed, 3 insertions, 10 deletions
diff --git a/pkgs/games/space-cadet-pinball/default.nix b/pkgs/games/space-cadet-pinball/default.nix
index 31df5377f1d3d..312b2e32823bf 100644
--- a/pkgs/games/space-cadet-pinball/default.nix
+++ b/pkgs/games/space-cadet-pinball/default.nix
@@ -1,5 +1,5 @@
 { lib, stdenv, fetchFromGitHub, fetchzip
-, cmake, SDL2, SDL2_mixer, Cocoa
+, cmake, SDL2, SDL2_mixer
 , unrar-wrapper, makeWrapper
 , fetchpatch
 }:
@@ -38,21 +38,15 @@ stdenv.mkDerivation rec {
     SDL2_mixer
     cmake
     makeWrapper
-    Cocoa
   ];
 
-  preBuild = ''
+  postInstall = ''
     mkdir -p $out/lib/SpaceCadetPinball
-    mkdir -p $out/bin
-  '';
-
-  installPhase = ''
     install ${assets}/*.{DAT,DOC,MID,BMP,INF} ${assets}/Sounds/*.WAV $out/lib/SpaceCadetPinball
 
     # Assets are loaded from the directory of the program is stored in
     # https://github.com/k4zmu2a/SpaceCadetPinball/blob/de13d4e326b2dfa8e6dfb59815c0a8b9657f942d/SpaceCadetPinball/winmain.cpp#L119
-    cp ../bin/SpaceCadetPinball $out/bin
-    cp $out/bin/SpaceCadetPinball $out/lib/SpaceCadetPinball
+    mv $out/bin/SpaceCadetPinball $out/lib/SpaceCadetPinball
     makeWrapper $out/lib/SpaceCadetPinball/SpaceCadetPinball $out/bin/SpaceCadetPinball
   '';
 
@@ -63,6 +57,5 @@ stdenv.mkDerivation rec {
     license = with licenses; [ unfree mit ];
     maintainers = [ maintainers.hqurve ];
     platforms = platforms.all;
-    mainProgram = "SpaceCadetPinball";
   };
 }