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