1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-28 00:22:13 +00:00
nixpkgs/pkgs/games/dwarf-fortress/dwarf-therapist/default.nix

35 lines
1 KiB
Nix
Raw Normal View History

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