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