Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / games / dwarf-fortress / dwarf-therapist / default.nix
blob42dd74a766b2f4dcf7df9a82db8fb1702adc7425
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , qtbase
5 , qtdeclarative
6 , cmake
7 , texlive
8 , ninja
9 }:
11 stdenv.mkDerivation rec {
12   pname = "dwarf-therapist";
13   version = "41.2.2";
15   src = fetchFromGitHub {
16     owner = "Dwarf-Therapist";
17     repo = "Dwarf-Therapist";
18     rev = "v${version}";
19     sha256 = "sha256-zsEG68ioSw64UfmqlTLO1i5sObg8C4zxvdPxdQGMhhU=";
20   };
22   nativeBuildInputs = [ texlive cmake ninja ];
23   buildInputs = [ qtbase qtdeclarative ];
25   installPhase =
26     if stdenv.isDarwin then ''
27       mkdir -p $out/Applications
28       cp -r DwarfTherapist.app $out/Applications
29     '' else null;
31   dontWrapQtApps = true;
33   meta = with lib; {
34     description = "Tool to manage dwarves in a running game of Dwarf Fortress";
35     maintainers = with maintainers; [ abbradar bendlas numinit jonringer ];
36     license = licenses.mit;
37     platforms = platforms.x86;
38     homepage = "https://github.com/Dwarf-Therapist/Dwarf-Therapist";
39   };