2018-07-21 00:44:44 +00:00
|
|
|
{ stdenv, fetchFromGitHub, qtbase
|
2018-07-08 19:44:29 +00:00
|
|
|
, qtdeclarative, cmake, texlive, ninja }:
|
2016-01-12 18:17:46 +00:00
|
|
|
|
2016-04-26 12:27:48 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-07-08 19:44:29 +00:00
|
|
|
name = "dwarf-therapist-${version}";
|
2018-08-16 21:58:22 +00:00
|
|
|
version = "41.0.2";
|
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}";
|
2018-08-16 21:58:22 +00:00
|
|
|
sha256 = "0cvnk1dkszh7q7viv3i1v3ifzv1w0xyz69mifa1cbvbi47z2dh0d";
|
2016-01-12 18:17:46 +00:00
|
|
|
};
|
|
|
|
|
2016-03-03 12:02:21 +00:00
|
|
|
buildInputs = [ qtbase qtdeclarative ];
|
2017-07-28 10:08:32 +00:00
|
|
|
nativeBuildInputs = [ texlive cmake ninja ];
|
2016-01-12 18:17:46 +00:00
|
|
|
|
2018-06-10 23:21:36 +00: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 20:28:59 +00:00
|
|
|
description = "Tool to manage dwarves in a running game of Dwarf Fortress";
|
|
|
|
maintainers = with maintainers; [ the-kenny abbradar bendlas numinit ];
|
2016-11-23 14:49:18 +00:00
|
|
|
license = licenses.mit;
|
2018-06-10 23:21:36 +00:00
|
|
|
platforms = platforms.unix;
|
2017-12-06 23:53:24 +00:00
|
|
|
homepage = https://github.com/Dwarf-Therapist/Dwarf-Therapist;
|
2016-01-12 18:17:46 +00:00
|
|
|
};
|
|
|
|
}
|