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

42 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, coreutils, qtbase, qtdeclarative, cmake, texlive, ninja }:
2016-01-12 10:17:46 -08:00
stdenv.mkDerivation rec {
2016-01-12 10:17:46 -08:00
name = "dwarf-therapist-original-${version}";
version = "37.0.0-Hello71";
2016-01-12 10:17:46 -08:00
src = fetchFromGitHub {
## We use `Hello71`'s fork for 43.05 support
# owner = "splintermind";
owner = "Hello71";
2016-01-12 10:17:46 -08:00
repo = "Dwarf-Therapist";
rev = "42ccaa71f6077ebdd41543255a360c3470812b97";
sha256 = "0f6mlfck7q31jl5cb6d6blf5sb7cigvvs2rn31k16xc93hsdgxaz";
2016-01-12 10:17:46 -08:00
};
outputs = [ "out" "layouts" ];
buildInputs = [ qtbase qtdeclarative ];
nativeBuildInputs = [ texlive cmake ninja ];
2016-01-12 10:17:46 -08:00
configurePhase = ''
cmake -GNinja
'';
buildPhase = ''
ninja -j$NIX_BUILD_CORES
'';
2016-01-12 10:17:46 -08: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";
2016-11-23 06:49:18 -08:00
maintainers = with maintainers; [ the-kenny abbradar ];
license = licenses.mit;
platforms = platforms.linux;
homepage = https://github.com/splintermind/Dwarf-Therapist;
2016-01-12 10:17:46 -08:00
};
}