Skip to content

Commit

Permalink
diablo
Browse files Browse the repository at this point in the history
  • Loading branch information
peterhoeg committed Mar 25, 2019
1 parent 373488e commit 285095c
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
42 changes: 42 additions & 0 deletions pkgs/games/devilutionx/default.nix
@@ -0,0 +1,42 @@
{ stdenv, fetchFromGitHub, cmake, pkgconfig
, libsodium, SDL2, SDL2_mixer, SDL2_ttf }:

stdenv.mkDerivation rec {
name = "devilutionx-${version}";
version = "0.3.1";

src = fetchFromGitHub {
owner = "diasurgical";
repo = "devilutionX";
rev = version;
sha256 = "1ggss39k70kdndnvisawnnvrnwcg814l6y7q8nhik186c01m8knb";
};

postPatch = ''
substituteInPlace SourceX/DiabloUI/diabloui.h \
--replace SDL_ttf.h SDL2/SDL_ttf.h
'';

nativeBuildInputs = [ cmake pkgconfig ];

buildInputs = [
libsodium
SDL2 SDL2_mixer SDL2_ttf
];

cmakeFlags = [
"-DBINARY_RELEASE=ON"
];

NIX_CFLAGS_COMPILE = [
"-Wno-error=format-overflow"
];

meta = with stdenv.lib; {
description = "Diablo for modern operating systems";
homepage = https://github.com/diasurgical/devilutionX;
license = licenses.unfree;
maintainers = with maintainers; [ peterhoeg ];
hydraPlatforms = [];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -1581,6 +1581,8 @@ in

massren = callPackage ../tools/misc/massren { };

devilutionx = callPackage ../games/devilutionx { };

meritous = callPackage ../games/meritous { };

opendune = callPackage ../games/opendune { };
Expand Down

0 comments on commit 285095c

Please sign in to comment.