mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 14:41:17 +00:00
986ea06036
The game works only on x86 anyway.
40 lines
1 KiB
Nix
40 lines
1 KiB
Nix
{ stdenv, fetchFromGitHub, coreutils, qtbase, qtdeclarative, cmake, texlive, ninja }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "dwarf-therapist-original-${version}";
|
|
version = "39.2.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Dwarf-Therapist";
|
|
repo = "Dwarf-Therapist";
|
|
rev = "v${version}";
|
|
sha256 = "1dgcn1a4sz649kj94ldqy4ms7zhwpaj3q4r86b0yfh6dda8jzlgp";
|
|
};
|
|
|
|
outputs = [ "out" "layouts" ];
|
|
buildInputs = [ qtbase qtdeclarative ];
|
|
nativeBuildInputs = [ texlive cmake ninja ];
|
|
|
|
configurePhase = ''
|
|
cmake -GNinja
|
|
'';
|
|
|
|
buildPhase = ''
|
|
ninja -j$NIX_BUILD_CORES
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp ./DwarfTherapist $out/bin/DwarfTherapist
|
|
cp -r ./share/memory_layouts $layouts
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Tool to manage dwarves in in a running game of Dwarf Fortress";
|
|
maintainers = with maintainers; [ the-kenny abbradar bendlas ];
|
|
license = licenses.mit;
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
|
homepage = https://github.com/Dwarf-Therapist/Dwarf-Therapist;
|
|
};
|
|
}
|