nixpkgs/pkgs/games/dwarf-fortress/dwarf-therapist/default.nix

37 lines
1.1 KiB
Nix
Raw Normal View History

2017-06-02 17:40:19 +02:00
{ stdenv, fetchFromGitHub, coreutils, qtbase, qtdeclarative, qmake, texlive }:
2016-01-12 19:17:46 +01:00
stdenv.mkDerivation rec {
2016-01-12 19:17:46 +01:00
name = "dwarf-therapist-original-${version}";
version = "37.0.0";
2016-01-12 19:17:46 +01:00
src = fetchFromGitHub {
owner = "splintermind";
repo = "Dwarf-Therapist";
rev = "v${version}";
sha256 = "0dw86b4x5hjhb7h4ynvwjgcinpqywfc5l48ljb5sahz08rfnx63d";
2016-01-12 19:17:46 +01:00
};
outputs = [ "out" "layouts" ];
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
# 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;
homepage = https://github.com/splintermind/Dwarf-Therapist;
2016-01-12 19:17:46 +01:00
};
}