2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, fetchFromGitHub, qtbase
|
2018-07-08 21:44:29 +02:00
|
|
|
, qtdeclarative, cmake, texlive, ninja }:
|
2016-01-12 19:17:46 +01:00
|
|
|
|
2016-04-26 14:27:48 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "dwarf-therapist";
|
2020-03-12 19:38:37 +01:00
|
|
|
version = "41.1.5";
|
2016-01-12 19:17:46 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-12-07 00:53:24 +01:00
|
|
|
owner = "Dwarf-Therapist";
|
2016-01-12 19:17:46 +01:00
|
|
|
repo = "Dwarf-Therapist";
|
2017-12-30 14:49:16 +01:00
|
|
|
rev = "v${version}";
|
2020-03-12 19:38:37 +01:00
|
|
|
sha256 = "0w1mwwf49vdmvmdfvlkn4m0hzvlj111rpl8hv4rw6v8nv6yfb2y4";
|
2016-01-12 19:17:46 +01:00
|
|
|
};
|
|
|
|
|
2017-07-28 12:08:32 +02:00
|
|
|
nativeBuildInputs = [ texlive cmake ninja ];
|
2020-01-30 20:13:36 +01:00
|
|
|
buildInputs = [ qtbase qtdeclarative ];
|
2016-01-12 19:17:46 +01:00
|
|
|
|
2018-06-11 01:21:36 +02:00
|
|
|
installPhase = if stdenv.isDarwin then ''
|
|
|
|
mkdir -p $out/Applications
|
|
|
|
cp -r DwarfTherapist.app $out/Applications
|
|
|
|
'' else null;
|
|
|
|
|
2016-11-23 15:49:18 +01:00
|
|
|
meta = with stdenv.lib; {
|
2018-07-01 22:28:59 +02:00
|
|
|
description = "Tool to manage dwarves in a running game of Dwarf Fortress";
|
2020-05-09 11:25:07 +02:00
|
|
|
maintainers = with maintainers; [ abbradar bendlas numinit jonringer ];
|
2016-11-23 15:49:18 +01:00
|
|
|
license = licenses.mit;
|
2018-06-11 01:21:36 +02:00
|
|
|
platforms = platforms.unix;
|
2020-01-30 20:13:36 +01:00
|
|
|
homepage = "https://github.com/Dwarf-Therapist/Dwarf-Therapist";
|
2016-01-12 19:17:46 +01:00
|
|
|
};
|
|
|
|
}
|