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

31 lines
899 B
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, qtbase
, qtdeclarative, cmake, texlive, ninja }:
2016-01-12 21:17:46 +03:00
stdenv.mkDerivation rec {
name = "dwarf-therapist-${version}";
version = "41.0.2";
2016-01-12 21:17:46 +03:00
src = fetchFromGitHub {
owner = "Dwarf-Therapist";
2016-01-12 21:17:46 +03:00
repo = "Dwarf-Therapist";
2017-12-30 16:49:16 +03:00
rev = "v${version}";
sha256 = "0cvnk1dkszh7q7viv3i1v3ifzv1w0xyz69mifa1cbvbi47z2dh0d";
2016-01-12 21:17:46 +03:00
};
buildInputs = [ qtbase qtdeclarative ];
nativeBuildInputs = [ texlive cmake ninja ];
2016-01-12 21:17:46 +03:00
2018-06-11 02:21:36 +03:00
installPhase = if stdenv.isDarwin then ''
mkdir -p $out/Applications
cp -r DwarfTherapist.app $out/Applications
'' else null;
2016-11-23 17:49:18 +03:00
meta = with stdenv.lib; {
description = "Tool to manage dwarves in a running game of Dwarf Fortress";
maintainers = with maintainers; [ the-kenny abbradar bendlas numinit ];
2016-11-23 17:49:18 +03:00
license = licenses.mit;
2018-06-11 02:21:36 +03:00
platforms = platforms.unix;
homepage = https://github.com/Dwarf-Therapist/Dwarf-Therapist;
2016-01-12 21:17:46 +03:00
};
}