Skip to content
Permalink
Browse files

diablo

  • Loading branch information
peterhoeg committed Mar 25, 2019
1 parent 373488e commit 285095cd80b6230d460f33151f6021100e797fa4
Showing with 44 additions and 0 deletions.
  1. +42 −0 pkgs/games/devilutionx/default.nix
  2. +2 −0 pkgs/top-level/all-packages.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 = [];
};
}
@@ -1581,6 +1581,8 @@ in

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

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

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

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

0 comments on commit 285095c

Please sign in to comment.
You can’t perform that action at this time.