mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
classicube: 1.3.5 -> 1.3.6
This commit is contained in:
parent
a158dd2e67
commit
cd856f1fad
@ -15,13 +15,13 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "ClassiCube";
|
||||
version = "1.3.5";
|
||||
version = "1.3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "UnknownShadow200";
|
||||
repo = "ClassiCube";
|
||||
rev = version;
|
||||
sha256 = "sha256-anBi9hPwX1AAIc8dXsKyX4u7UbkKqC1P+7f7wdKWAig=";
|
||||
sha256 = "sha256-7VPn5YXNoAR3ftYMDQuQRqeMCrbyB56ir1sQWBiPWAI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ dos2unix makeWrapper copyDesktopItems ];
|
||||
@ -64,21 +64,17 @@ stdenv.mkDerivation rec {
|
||||
--replace '%NIXPKGS_FONT_PATH%' "${font_path}"
|
||||
# ClassiCube's Makefile hardcodes JOBS=1 for some reason,
|
||||
# even though it works perfectly well multi-threaded.
|
||||
substituteInPlace src/Makefile \
|
||||
substituteInPlace Makefile \
|
||||
--replace 'JOBS=1' "JOBS=$NIX_BUILD_CORES"
|
||||
'';
|
||||
|
||||
buildInputs = [ libX11 libXi libGL curl openal liberation_ttf ];
|
||||
|
||||
preBuild = "cd src";
|
||||
|
||||
postBuild = "cd -";
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p "$out/bin"
|
||||
cp 'src/ClassiCube' "$out/bin"
|
||||
cp 'ClassiCube' "$out/bin"
|
||||
# ClassiCube puts downloaded resources
|
||||
# next to the location of the executable by default.
|
||||
# This doesn't work with Nix
|
||||
|
@ -1,7 +1,7 @@
|
||||
diff --git a/src/Makefile b/src/Makefile
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 83188ce..3439cdb 100644
|
||||
--- a/src/Makefile
|
||||
+++ b/src/Makefile
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -40,7 +40,7 @@ LIBS=-mwindows -lws2_32 -lwininet -lwinmm -limagehlp -lcrypt32 -ld3d9
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user