5ba06d7170
Semi-automatic update. These checks were performed: - built on NixOS - ran `/nix/store/8s6lwg583x8867mjc29znp9a1cdiqdri-openspades-0.1.2/bin/openspades -h` got 0 exit code - ran `/nix/store/8s6lwg583x8867mjc29znp9a1cdiqdri-openspades-0.1.2/bin/openspades --help` got 0 exit code - ran `/nix/store/8s6lwg583x8867mjc29znp9a1cdiqdri-openspades-0.1.2/bin/openspades help` got 0 exit code - ran `/nix/store/8s6lwg583x8867mjc29znp9a1cdiqdri-openspades-0.1.2/bin/openspades -V` and found version 0.1.2 - ran `/nix/store/8s6lwg583x8867mjc29znp9a1cdiqdri-openspades-0.1.2/bin/openspades -v` and found version 0.1.2 - ran `/nix/store/8s6lwg583x8867mjc29znp9a1cdiqdri-openspades-0.1.2/bin/openspades --version` and found version 0.1.2 - ran `/nix/store/8s6lwg583x8867mjc29znp9a1cdiqdri-openspades-0.1.2/bin/openspades version` and found version 0.1.2 - ran `/nix/store/8s6lwg583x8867mjc29znp9a1cdiqdri-openspades-0.1.2/bin/openspades -h` and found version 0.1.2 - ran `/nix/store/8s6lwg583x8867mjc29znp9a1cdiqdri-openspades-0.1.2/bin/openspades --help` and found version 0.1.2 - ran `/nix/store/8s6lwg583x8867mjc29znp9a1cdiqdri-openspades-0.1.2/bin/openspades help` and found version 0.1.2 - found 0.1.2 with grep in /nix/store/8s6lwg583x8867mjc29znp9a1cdiqdri-openspades-0.1.2 - found 0.1.2 in filename of file in /nix/store/8s6lwg583x8867mjc29znp9a1cdiqdri-openspades-0.1.2
48 lines
1.3 KiB
Nix
48 lines
1.3 KiB
Nix
{ stdenv, lib, fetchurl, fetchFromGitHub, cmake, unzip, zip, file
|
|
, curl, glew , mesa_noglu, SDL2, SDL2_image, zlib, freetype, imagemagick
|
|
, openal , opusfile, libogg
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "openspades-${version}";
|
|
version = "0.1.2";
|
|
devPakVersion = "33";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "yvt";
|
|
repo = "openspades";
|
|
rev = "v${version}";
|
|
sha256 = "1mfj46c3pnn1f6awy3b6faxs26i93a5jsrvkdlr12ndsykvi6ng6";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake imagemagick unzip zip file ];
|
|
|
|
buildInputs = [
|
|
freetype SDL2 SDL2_image mesa_noglu zlib curl glew opusfile openal libogg
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DOPENSPADES_INSTALL_BINARY=bin"
|
|
];
|
|
|
|
devPak = fetchurl {
|
|
url = "https://github.com/yvt/openspades-paks/releases/download/r${devPakVersion}/OpenSpadesDevPackage-r${devPakVersion}.zip";
|
|
sha256 = "1bd2fyn7mlxa3xnsvzj08xjzw02baimqvmnix07blfhb78rdq9q9";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i 's,^wget .*,cp $devPak "$PAK_NAME",' Resources/downloadpak.sh
|
|
patchShebangs Resources
|
|
'';
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
NIX_CFLAGS_LINK = [ "-lopenal" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "A compatible client of Ace of Spades 0.75";
|
|
homepage = "https://github.com/yvt/openspades/";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|