2017-07-28 03:08:32 -07:00
|
|
|
{ stdenv, fetchFromGitHub, coreutils, qtbase, qtdeclarative, cmake, texlive, ninja }:
|
2016-01-12 10:17:46 -08:00
|
|
|
|
2016-04-26 05:27:48 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2016-01-12 10:17:46 -08:00
|
|
|
name = "dwarf-therapist-original-${version}";
|
2017-07-28 03:08:32 -07:00
|
|
|
version = "37.0.0-Hello71";
|
2016-01-12 10:17:46 -08:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-07-28 03:08:32 -07:00
|
|
|
## We use `Hello71`'s fork for 43.05 support
|
|
|
|
# owner = "splintermind";
|
|
|
|
owner = "Hello71";
|
2016-01-12 10:17:46 -08:00
|
|
|
repo = "Dwarf-Therapist";
|
2017-07-28 03:08:32 -07:00
|
|
|
rev = "42ccaa71f6077ebdd41543255a360c3470812b97";
|
|
|
|
sha256 = "0f6mlfck7q31jl5cb6d6blf5sb7cigvvs2rn31k16xc93hsdgxaz";
|
2016-01-12 10:17:46 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "layouts" ];
|
2016-03-03 04:02:21 -08:00
|
|
|
buildInputs = [ qtbase qtdeclarative ];
|
2017-07-28 03:08:32 -07:00
|
|
|
nativeBuildInputs = [ texlive cmake ninja ];
|
2016-01-12 10:17:46 -08:00
|
|
|
|
2017-07-28 03:08:32 -07:00
|
|
|
configurePhase = ''
|
|
|
|
cmake -GNinja
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
ninja -j$NIX_BUILD_CORES
|
|
|
|
'';
|
2016-01-12 10:17:46 -08:00
|
|
|
|
2017-07-28 03:08:32 -07:00
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp ./DwarfTherapist $out/bin/DwarfTherapist
|
|
|
|
cp -r ./share/memory_layouts $layouts
|
2016-01-12 10:17:46 -08:00
|
|
|
'';
|
|
|
|
|
2016-11-23 06:49:18 -08:00
|
|
|
meta = with stdenv.lib; {
|
2016-01-12 10:17:46 -08:00
|
|
|
description = "Tool to manage dwarves in in a running game of Dwarf Fortress";
|
2016-11-23 06:49:18 -08:00
|
|
|
maintainers = with maintainers; [ the-kenny abbradar ];
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
2017-08-01 13:03:30 -07:00
|
|
|
homepage = https://github.com/splintermind/Dwarf-Therapist;
|
2016-01-12 10:17:46 -08:00
|
|
|
};
|
|
|
|
}
|