mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 06:14:57 +01:00
fbe8538aa1
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
47 lines
1 KiB
Nix
47 lines
1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, qtbase
|
|
, qtdeclarative
|
|
, cmake
|
|
, ninja
|
|
, version ? "42.1.6"
|
|
, hash ? "sha256-VjCXT4sl3HsFILrqTc3JJSeRedZaOXUbf4KvSzTo0uc="
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "dwarf-therapist";
|
|
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Dwarf-Therapist";
|
|
repo = "Dwarf-Therapist";
|
|
rev = "v${version}";
|
|
inherit hash;
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ninja ];
|
|
buildInputs = [ qtbase qtdeclarative ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
cmakeFlags = [ "-GNinja" ];
|
|
|
|
installPhase =
|
|
if stdenv.isDarwin then ''
|
|
mkdir -p $out/Applications
|
|
cp -r DwarfTherapist.app $out/Applications
|
|
'' else null;
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
meta = with lib; {
|
|
mainProgram = "dwarftherapist";
|
|
description = "Tool to manage dwarves in a running game of Dwarf Fortress";
|
|
maintainers = with maintainers; [ abbradar bendlas numinit ];
|
|
license = licenses.mit;
|
|
platforms = platforms.x86;
|
|
homepage = "https://github.com/Dwarf-Therapist/Dwarf-Therapist";
|
|
};
|
|
}
|