diff options
author | Dr Perceptron <92106371+drperceptron@users.noreply.github.com> | 2021-12-22 08:49:33 +1100 |
---|---|---|
committer | Dr Perceptron <92106371+drperceptron@users.noreply.github.com> | 2021-12-26 14:36:53 +1100 |
commit | 31007093a07f5cf1dec1468686eea390d5c69d28 (patch) | |
tree | c2e052dd66b66d170948480dffc5265b8f6a9bc2 /pkgs/games/tworld2 | |
parent | 438dd9e2336009ce1a5ebcf9aacfddbd243d07f6 (diff) |
tworld2: init at 2.2.0
Diffstat (limited to 'pkgs/games/tworld2')
-rw-r--r-- | pkgs/games/tworld2/default.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/games/tworld2/default.nix b/pkgs/games/tworld2/default.nix new file mode 100644 index 0000000000000..1db1dcf5f0652 --- /dev/null +++ b/pkgs/games/tworld2/default.nix @@ -0,0 +1,45 @@ +{ stdenv +, lib +, fetchurl +, qt4 +, SDL +}: + +stdenv.mkDerivation rec { + pname = "tworld2"; + version = "2.2.0"; + + src = fetchurl { + url = "https://tw2.bitbusters.club/downloads/tworld-${version}-src.tar.gz"; + sha256 = "sha256:1y55v2shk2xxcds7bdwdjaq9lka31sgdp2469zqnvldchwbvcb2i"; + }; + + buildInputs = [ qt4 SDL ]; + enableParallelBuilding = true; + + postConfigure = '' + echo "#define COMPILE_TIME \"$(date -ud "@$SOURCE_DATE_EPOCH" '+%Y %b %e %T %Z')\"" >comptime.h + ''; + + makeFlags = [ + "bindir=${placeholder "out"}/bin" + "sharedir=${placeholder "out"}/share" + "mandir=${placeholder "out"}/share/man/en" + ]; + + postInstall = '' + mkdir -p $out/share/doc/${pname} + cp COPYING README docs/tworld2.html $out/share/doc/${pname} + + mkdir $out/share/icons + cp tworld.ico tworld2.ico $out/share/icons + ''; + + meta = with lib; { + description = "Tile World 2: Tile World is a reimplementation of the game Chip's Challenge"; + homepage = "https://tw2.bitbusters.club/"; + license = licenses.gpl2Plus; + platforms = platforms.linux; + maintainers = with maintainers; [ drperceptron ]; + }; +} |