2018-07-05 16:36:27 +01:00
|
|
|
{ stdenvNoCC, fetchurl, unzip }:
|
|
|
|
|
|
|
|
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
|
|
name = "twbt-${version}";
|
2018-08-16 22:58:22 +01:00
|
|
|
version = "6.54";
|
|
|
|
dfVersion = "0.44.12";
|
2018-07-05 16:36:27 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/mifki/df-twbt/releases/download/v${version}/twbt-${version}-linux.zip";
|
2018-08-16 22:58:22 +01:00
|
|
|
sha256 = "10gfd6vv0vk4v1r5hjbz7vf1zqys06dsad695gysc7fbcik2dakh";
|
2018-07-05 16:36:27 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|