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

33 lines
915 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, qtbase
, qtdeclarative, cmake, texlive, ninja }:
2016-01-12 10:17:46 -08:00
stdenv.mkDerivation rec {
pname = "dwarf-therapist";
2020-03-12 11:38:37 -07:00
version = "41.1.5";
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}";
2020-03-12 11:38:37 -07:00
sha256 = "0w1mwwf49vdmvmdfvlkn4m0hzvlj111rpl8hv4rw6v8nv6yfb2y4";
2016-01-12 10:17:46 -08:00
};
nativeBuildInputs = [ texlive cmake ninja ];
buildInputs = [ qtbase qtdeclarative ];
2016-01-12 10:17:46 -08:00
2018-06-10 16:21:36 -07:00
installPhase = if stdenv.isDarwin then ''
mkdir -p $out/Applications
cp -r DwarfTherapist.app $out/Applications
'' else null;
dontWrapQtApps = true;
meta = with lib; {
description = "Tool to manage dwarves in a running game of Dwarf Fortress";
maintainers = with maintainers; [ abbradar bendlas numinit jonringer ];
2016-11-23 06:49:18 -08:00
license = licenses.mit;
2018-06-10 16:21:36 -07:00
platforms = platforms.unix;
homepage = "https://github.com/Dwarf-Therapist/Dwarf-Therapist";
2016-01-12 10:17:46 -08:00
};
}