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

40 lines
1.0 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.2.1";
2016-01-12 10:17:46 -08:00
src = fetchFromGitHub {
owner = "Dwarf-Therapist";
2016-01-12 10:17:46 -08:00
repo = "Dwarf-Therapist";
2017-12-30 05:49:16 -08:00
rev = "v${version}";
sha256 = "1dgcn1a4sz649kj94ldqy4ms7zhwpaj3q4r86b0yfh6dda8jzlgp";
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 = [ "x86_64-linux" "i686-linux" ];
homepage = https://github.com/Dwarf-Therapist/Dwarf-Therapist;
2016-01-12 10:17:46 -08:00
};
}