nixpkgs/pkgs/games/dwarf-fortress/dwarf-therapist/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
929 B
Nix
Raw Normal View History

2021-06-29 02:42:37 +00:00
{ lib
, stdenv
, fetchFromGitHub
, qtbase
, qtdeclarative
, cmake
, texlive
, ninja
}:
2016-01-12 18:17:46 +00:00
stdenv.mkDerivation rec {
pname = "dwarf-therapist";
2021-06-16 20:36:04 +00:00
version = "41.2.2";
2016-01-12 18:17:46 +00:00
src = fetchFromGitHub {
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}";
2021-06-16 20:36:04 +00:00
sha256 = "sha256-zsEG68ioSw64UfmqlTLO1i5sObg8C4zxvdPxdQGMhhU=";
2016-01-12 18:17:46 +00:00
};
nativeBuildInputs = [ texlive cmake ninja ];
buildInputs = [ qtbase qtdeclarative ];
2016-01-12 18:17:46 +00:00
2021-06-29 02:42:37 +00:00
installPhase =
if stdenv.isDarwin then ''
mkdir -p $out/Applications
cp -r DwarfTherapist.app $out/Applications
'' else null;
2018-06-10 23:21:36 +00:00
dontWrapQtApps = true;
meta = with lib; {
description = "Tool to manage dwarves in a running game of Dwarf Fortress";
maintainers = with maintainers; [ abbradar bendlas numinit jonringer ];
2016-11-23 14:49:18 +00:00
license = licenses.mit;
platforms = platforms.x86;
homepage = "https://github.com/Dwarf-Therapist/Dwarf-Therapist";
2016-01-12 18:17:46 +00:00
};
}