2017-07-28 03:08:32 -07:00
|
|
|
{ stdenv, fetchFromGitHub, coreutils, qtbase, qtdeclarative, cmake, texlive, ninja }:
|
2016-01-12 10:17:46 -08:00
|
|
|
|
2016-04-26 05:27:48 -07:00
|
|
|
stdenv.mkDerivation rec {
|
2016-01-12 10:17:46 -08:00
|
|
|
name = "dwarf-therapist-original-${version}";
|
2018-06-30 02:08:56 -07:00
|
|
|
version = "40.1.0";
|
2016-01-12 10:17:46 -08:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2017-12-06 15:53:24 -08:00
|
|
|
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}";
|
2018-06-30 02:08:56 -07:00
|
|
|
sha256 = "1aklwic5npgkp8rkrvz2q9idkipsm1h26mgd8q03135nzl1ld9q3";
|
2016-01-12 10:17:46 -08:00
|
|
|
};
|
|
|
|
|
2016-03-03 04:02:21 -08:00
|
|
|
buildInputs = [ qtbase qtdeclarative ];
|
2017-07-28 03:08:32 -07:00
|
|
|
nativeBuildInputs = [ texlive cmake ninja ];
|
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;
|
|
|
|
|
2016-11-23 06:49:18 -08:00
|
|
|
meta = with stdenv.lib; {
|
2018-07-01 13:28:59 -07:00
|
|
|
description = "Tool to manage dwarves in a running game of Dwarf Fortress";
|
|
|
|
maintainers = with maintainers; [ the-kenny abbradar bendlas numinit ];
|
2016-11-23 06:49:18 -08:00
|
|
|
license = licenses.mit;
|
2018-06-10 16:21:36 -07:00
|
|
|
platforms = platforms.unix;
|
2017-12-06 15:53:24 -08:00
|
|
|
homepage = https://github.com/Dwarf-Therapist/Dwarf-Therapist;
|
2016-01-12 10:17:46 -08:00
|
|
|
};
|
|
|
|
}
|