mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
40 lines
1.0 KiB
Nix
40 lines
1.0 KiB
Nix
{ stdenv, fetchFromGitHub, coreutils, qtbase, qtdeclarative, cmake, texlive, ninja }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "dwarf-therapist-original-${version}";
|
|
version = "39.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Dwarf-Therapist";
|
|
repo = "Dwarf-Therapist";
|
|
rev = "v${version}";
|
|
sha256 = "1ddy9b9ly1231pnjs43gj7pvc77wjvs4j2rlympal81vyabaphmy";
|
|
};
|
|
|
|
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 = platforms.linux;
|
|
homepage = https://github.com/Dwarf-Therapist/Dwarf-Therapist;
|
|
};
|
|
}
|