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