summary refs log tree commit diff
path: root/pkgs/games/dwarf-fortress/twbt
diff options
context:
space:
mode:
authorSvein Ove Aas <sveina@gmail.com>2018-07-05 16:36:27 +0100
committerSvein Ove Aas <sveina@gmail.com>2018-07-05 20:21:59 +0100
commit5012ce727ab54d7fe02ae730011d3160ab3743a0 (patch)
tree91b42c716887e30c3e16e5fca145269837d8d416 /pkgs/games/dwarf-fortress/twbt
parent1bb95d8409aabcc9ee52045771b7c9109336fc2f (diff)
downloadnixpkgs-5012ce727ab54d7fe02ae730011d3160ab3743a0.tar
nixpkgs-5012ce727ab54d7fe02ae730011d3160ab3743a0.tar.gz
nixpkgs-5012ce727ab54d7fe02ae730011d3160ab3743a0.tar.bz2
nixpkgs-5012ce727ab54d7fe02ae730011d3160ab3743a0.tar.lz
nixpkgs-5012ce727ab54d7fe02ae730011d3160ab3743a0.tar.xz
nixpkgs-5012ce727ab54d7fe02ae730011d3160ab3743a0.tar.zst
nixpkgs-5012ce727ab54d7fe02ae730011d3160ab3743a0.zip
dwarf-fortress: Init TWBT at 6.46
Diffstat (limited to 'pkgs/games/dwarf-fortress/twbt')
-rw-r--r--pkgs/games/dwarf-fortress/twbt/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/games/dwarf-fortress/twbt/default.nix b/pkgs/games/dwarf-fortress/twbt/default.nix
new file mode 100644
index 00000000000..c262ae6572f
--- /dev/null
+++ b/pkgs/games/dwarf-fortress/twbt/default.nix
@@ -0,0 +1,35 @@
+{ stdenvNoCC, fetchurl, unzip }:
+
+
+stdenvNoCC.mkDerivation rec {
+  name = "twbt-${version}";
+  version = "6.46";
+  dfVersion = "0.44.10";
+
+  src = fetchurl {
+    url = "https://github.com/mifki/df-twbt/releases/download/v${version}/twbt-${version}-linux.zip";
+    sha256 = "1a4k26z5n547k5j3ij2kx834963rc8vwgwcmbmzmhi893bryb1k6";
+  };
+
+  sourceRoot = ".";
+
+  outputs = [ "lib" "art" "out" ];
+
+  buildInputs = [ unzip ];
+
+  installPhase = ''
+    mkdir -p $lib/hack/{plugins,lua} $art/data/art
+    cp -a */twbt.plug.so $lib/hack/plugins/
+    cp -a *.lua $lib/hack/lua/
+    cp -a *.png $art/data/art/
+  '';
+
+  
+  meta = with stdenvNoCC.lib; {
+    description = "A plugin for Dwarf Fortress / DFHack that improves various aspects the game interface.";
+    maintainers = with maintainers; [ Baughn ];
+    license = licenses.mit;
+    platforms = platforms.linux;
+    homepage = https://github.com/mifki/df-twbt;
+  };
+}