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

40 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 = "39.0.0";
2016-01-12 10:17:46 -08:00
src = fetchFromGitHub {
owner = "Dwarf-Therapist";
2016-01-12 10:17:46 -08:00
repo = "Dwarf-Therapist";
rev = "8ae293a6b45333bbf30644d11d1987651e53a307";
sha256 = "0p1127agr2a97gp5chgdkaa0wf02hqgx82yid1cvqpyj8amal6yg";
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";
maintainers = with maintainers; [ the-kenny abbradar bendlas ];
2016-11-23 06:49:18 -08:00
license = licenses.mit;
platforms = platforms.linux;
homepage = https://github.com/Dwarf-Therapist/Dwarf-Therapist;
2016-01-12 10:17:46 -08:00
};
}