devilutionx: unstable-2019-07-28 -> 0.5.0 (#70971)
devilutionx: unstable-2019-07-28 -> 0.5.0
This commit is contained in:
parent
64468d4121
commit
47f47b46bc
@ -1,28 +1,30 @@
|
|||||||
{ stdenv, fetchFromGitHub, cmake, SDL2, SDL2_mixer, SDL2_ttf, libsodium, pkg-config }:
|
{ stdenv, fetchFromGitHub, cmake, SDL2, SDL2_mixer, SDL2_ttf, libsodium, pkg-config }:
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation rec {
|
||||||
version = "unstable-2019-07-28";
|
version = "0.5.0";
|
||||||
pname = "devilutionx";
|
pname = "devilutionx";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "diasurgical";
|
owner = "diasurgical";
|
||||||
repo = "devilutionX";
|
repo = "devilutionX";
|
||||||
rev = "b2f358874705598ec139f290b21e340c73d250f6";
|
rev = version;
|
||||||
sha256 = "0s812km118qq5pzlzvzfndvag0mp6yzvm69ykc97frdiq608zw4f";
|
sha256 = "010hxj129zmsynvizk89vm2y29dcxsfi585czh3f03wfr38rxa6b";
|
||||||
};
|
};
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = "-I${SDL2_ttf}/include/SDL2";
|
NIX_CFLAGS_COMPILE = "-I${SDL2_ttf}/include/SDL2";
|
||||||
|
|
||||||
# compilation will fail due to -Werror=format-security
|
|
||||||
hardeningDisable = [ "format" ];
|
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config cmake ];
|
nativeBuildInputs = [ pkg-config cmake ];
|
||||||
buildInputs = [ libsodium SDL2 SDL2_mixer SDL2_ttf ];
|
buildInputs = [ libsodium SDL2 SDL2_mixer SDL2_ttf ];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
|
'' + (if stdenv.isDarwin then ''
|
||||||
|
mkdir -p $out/Applications
|
||||||
|
mv devilutionx.app $out/Applications
|
||||||
|
'' else ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
cp devilutionx $out/bin
|
cp devilutionx $out/bin
|
||||||
|
'') + ''
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
@ -30,6 +32,7 @@ stdenv.mkDerivation {
|
|||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
homepage = "https://github.com/diasurgical/devilutionX";
|
homepage = "https://github.com/diasurgical/devilutionX";
|
||||||
description = "Diablo build for modern operating systems";
|
description = "Diablo build for modern operating systems";
|
||||||
|
longDescription = "In order to play this game a copy of diabdat.mpq is required. Place a copy of diabdat.mpq in ~/.local/share/diasurgical/devilution before executing the game.";
|
||||||
license = licenses.unlicense;
|
license = licenses.unlicense;
|
||||||
maintainers = [ maintainers.karolchmist ];
|
maintainers = [ maintainers.karolchmist ];
|
||||||
platforms = platforms.linux ++ platforms.darwin ++ platforms.windows;
|
platforms = platforms.linux ++ platforms.darwin ++ platforms.windows;
|
||||||
|
Loading…
Reference in New Issue
Block a user