dwarf-fortress-packages.dwarf-therapist: update for df 43.05

Similar to the LNP, we use Hello71's fork, which features support for
the (first 64bit) version 43.05 of Dwarf Fortress.

http://dffd.bay12games.com/file.php?id=12762
This commit is contained in:
Herwig Hochleitner 2017-07-28 12:08:32 +02:00
parent 59b35013bc
commit d6ee81e912
2 changed files with 20 additions and 15 deletions

View File

@ -1,29 +1,34 @@
{ stdenv, fetchFromGitHub, coreutils, qtbase, qtdeclarative, qmake, texlive }:
{ stdenv, fetchFromGitHub, coreutils, qtbase, qtdeclarative, cmake, texlive, ninja }:
stdenv.mkDerivation rec {
name = "dwarf-therapist-original-${version}";
version = "37.0.0";
version = "37.0.0-Hello71";
src = fetchFromGitHub {
owner = "splintermind";
## We use `Hello71`'s fork for 43.05 support
# owner = "splintermind";
owner = "Hello71";
repo = "Dwarf-Therapist";
rev = "v${version}";
sha256 = "0dw86b4x5hjhb7h4ynvwjgcinpqywfc5l48ljb5sahz08rfnx63d";
rev = "42ccaa71f6077ebdd41543255a360c3470812b97";
sha256 = "0f6mlfck7q31jl5cb6d6blf5sb7cigvvs2rn31k16xc93hsdgxaz";
};
outputs = [ "out" "layouts" ];
buildInputs = [ qtbase qtdeclarative ];
nativeBuildInputs = [ texlive qmake ];
nativeBuildInputs = [ texlive cmake ninja ];
enableParallelBuilding = false;
configurePhase = ''
cmake -GNinja
'';
# Move layout files so they cannot be found by Therapist
postInstall = ''
mkdir -p $layouts
mv $out/share/dwarftherapist/memory_layouts/* $layouts
rmdir $out/share/dwarftherapist/memory_layouts
# Useless symlink
rm $out/bin/dwarftherapist
buildPhase = ''
ninja -j$NIX_BUILD_CORES
'';
installPhase = ''
mkdir -p $out/bin
cp ./DwarfTherapist $out/bin/DwarfTherapist
cp -r ./share/memory_layouts $layouts
'';
meta = with stdenv.lib; {

View File

@ -3,7 +3,7 @@
let
df = dwarf-fortress-original;
dt = dwarf-therapist-original;
inifile = "linux/v0${df.baseVersion}.${df.patchVersion}.ini";
inifile = "linux/v0.${df.baseVersion}.${df.patchVersion}.ini";
dfHashFile = "${df}/hash.md5";
in symlinkJoin {