2021-07-03 03:11:41 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, qtbase
|
|
|
|
, qtdeclarative
|
|
|
|
, cmake
|
|
|
|
, ninja
|
2024-05-15 15:35:15 +00:00
|
|
|
, version ? "42.1.6"
|
|
|
|
, hash ? "sha256-VjCXT4sl3HsFILrqTc3JJSeRedZaOXUbf4KvSzTo0uc="
|
2021-07-03 03:11:41 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dwarf-therapist";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
inherit version;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Dwarf-Therapist";
|
|
|
|
repo = "Dwarf-Therapist";
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
inherit hash;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
nativeBuildInputs = [ cmake ninja ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ qtbase qtdeclarative ];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
cmakeFlags = [ "-GNinja" ];
|
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
installPhase =
|
|
|
|
if stdenv.isDarwin then ''
|
|
|
|
mkdir -p $out/Applications
|
|
|
|
cp -r DwarfTherapist.app $out/Applications
|
|
|
|
'' else null;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-19 19:06:45 +00:00
|
|
|
dontWrapQtApps = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "dwarftherapist";
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Tool to manage dwarves in a running game of Dwarf Fortress";
|
2024-07-01 15:47:52 +00:00
|
|
|
maintainers = with maintainers; [ abbradar bendlas numinit ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2022-11-21 17:40:18 +00:00
|
|
|
platforms = platforms.x86;
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/Dwarf-Therapist/Dwarf-Therapist";
|
|
|
|
};
|
|
|
|
}
|