2016-04-23 20:25:34 +01:00
|
|
|
{ stdenv, fetchFromGitHub, coreutils, qtbase, qtdeclarative, qmakeHook, texlive }:
|
2016-01-12 18:17:46 +00:00
|
|
|
|
2016-04-26 13:27:48 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2016-01-12 18:17:46 +00:00
|
|
|
name = "dwarf-therapist-original-${version}";
|
2016-04-26 13:27:48 +01:00
|
|
|
version = "37.0.0";
|
2016-01-12 18:17:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "splintermind";
|
|
|
|
repo = "Dwarf-Therapist";
|
|
|
|
rev = "v${version}";
|
2016-03-03 12:02:21 +00:00
|
|
|
sha256 = "0dw86b4x5hjhb7h4ynvwjgcinpqywfc5l48ljb5sahz08rfnx63d";
|
2016-01-12 18:17:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "layouts" ];
|
2016-03-03 12:02:21 +00:00
|
|
|
buildInputs = [ qtbase qtdeclarative ];
|
2016-04-23 20:25:34 +01:00
|
|
|
nativeBuildInputs = [ texlive qmakeHook ];
|
2016-01-12 18:17:46 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = false;
|
|
|
|
|
|
|
|
# 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
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Tool to manage dwarves in in a running game of Dwarf Fortress";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ the-kenny abbradar ];
|
|
|
|
license = stdenv.lib.licenses.mit;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2016-03-03 12:02:21 +00:00
|
|
|
homepage = "https://github.com/splintermind/Dwarf-Therapist";
|
2016-01-12 18:17:46 +00:00
|
|
|
};
|
|
|
|
}
|