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-12-06 15:53:24 -08:00
|
|
|
version = "39.0.0";
|
2016-01-12 10:17:46 -08:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-12-06 15:53:24 -08:00
|
|
|
owner = "Dwarf-Therapist";
|
2016-01-12 10:17:46 -08:00
|
|
|
repo = "Dwarf-Therapist";
|
2017-12-06 15:53:24 -08:00
|
|
|
rev = "8ae293a6b45333bbf30644d11d1987651e53a307";
|
|
|
|
sha256 = "0p1127agr2a97gp5chgdkaa0wf02hqgx82yid1cvqpyj8amal6yg";
|
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";
|
2017-12-06 15:53:24 -08:00
|
|
|
maintainers = with maintainers; [ the-kenny abbradar bendlas ];
|
2016-11-23 06:49:18 -08:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
2017-12-06 15:53:24 -08:00
|
|
|
homepage = https://github.com/Dwarf-Therapist/Dwarf-Therapist;
|
2016-01-12 10:17:46 -08:00
|
|
|
};
|
|
|
|
}
|