2021-06-29 02:42:37 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, qtbase
|
|
|
|
, qtdeclarative
|
|
|
|
, cmake
|
|
|
|
, ninja
|
2024-05-06 04:31:34 +00:00
|
|
|
, version ? "42.1.6"
|
|
|
|
, hash ? "sha256-VjCXT4sl3HsFILrqTc3JJSeRedZaOXUbf4KvSzTo0uc="
|
2021-06-29 02:42:37 +00:00
|
|
|
}:
|
2016-01-12 18:17:46 +00:00
|
|
|
|
2016-04-26 12:27:48 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "dwarf-therapist";
|
2024-03-31 03:36:51 +00:00
|
|
|
|
2024-04-07 06:30:44 +00:00
|
|
|
inherit version;
|
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}";
|
2024-04-07 06:30:44 +00:00
|
|
|
inherit hash;
|
2016-01-12 18:17:46 +00:00
|
|
|
};
|
|
|
|
|
2024-05-06 06:43:16 +00:00
|
|
|
nativeBuildInputs = [ cmake ninja ];
|
2020-01-30 19:13:36 +00:00
|
|
|
buildInputs = [ qtbase qtdeclarative ];
|
2016-01-12 18:17:46 +00:00
|
|
|
|
2024-03-31 03:36:51 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
cmakeFlags = [ "-GNinja" ];
|
|
|
|
|
2021-06-29 02:42:37 +00:00
|
|
|
installPhase =
|
|
|
|
if stdenv.hostPlatform.isDarwin then ''
|
|
|
|
mkdir -p $out/Applications
|
|
|
|
cp -r DwarfTherapist.app $out/Applications
|
|
|
|
'' else null;
|
2018-06-10 23:21:36 +00:00
|
|
|
|
2021-01-12 11:50:23 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "dwarftherapist";
|
2024-03-31 03:36:51 +00:00
|
|
|
description = "Tool to manage dwarves in a running game of Dwarf Fortress";
|
2024-06-25 07:11:25 +00:00
|
|
|
maintainers = with maintainers; [ abbradar bendlas numinit ];
|
2016-11-23 14:49:18 +00:00
|
|
|
license = licenses.mit;
|
2022-11-15 22:23:15 +00:00
|
|
|
platforms = platforms.x86;
|
2020-01-30 19:13:36 +00:00
|
|
|
homepage = "https://github.com/Dwarf-Therapist/Dwarf-Therapist";
|
2016-01-12 18:17:46 +00:00
|
|
|
};
|
|
|
|
}
|