dwarf-fortress: TWBT: use fork for dfhack 0.47.04 support
The original mifki TWBT hasn't been updated since April 2019, while thurin's fork has added support for dfhack 0.47.04-r2. Thus, switch to thurin's fork when Dwarf Fortress 0.47.04 is used (and ever-so-slightly special case the url attribute).
This commit is contained in:
parent
50bf68669a
commit
e2b09f42ba
1 changed files with 9 additions and 4 deletions
|
@ -42,9 +42,10 @@ let
|
||||||
prerelease = false;
|
prerelease = false;
|
||||||
};
|
};
|
||||||
"0.47.04" = {
|
"0.47.04" = {
|
||||||
twbtRelease = "6.61";
|
twbtRelease = "6.xx";
|
||||||
sha256 = "07bqy9rkd64h033sxdpigp5zq4xrr0xd36wdr1b21g649mv8j6yw";
|
dfhackRelease = "0.47.04-r2";
|
||||||
prerelease = false;
|
sha256 = "092dgp8fh1j4nqr9wbzn89ib1nhscclr8m91lfxsvg0mgn7j8xlv";
|
||||||
|
prerelease = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -58,7 +59,11 @@ stdenvNoCC.mkDerivation rec {
|
||||||
version = release.twbtRelease;
|
version = release.twbtRelease;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://github.com/mifki/df-twbt/releases/download/v${version}/twbt-${version}-linux.zip";
|
url =
|
||||||
|
if version == "6.xx" then
|
||||||
|
"https://github.com/thurin/df-twbt/releases/download/${release.dfhackRelease}/twbt-${version}-linux64-${release.dfhackRelease}.zip"
|
||||||
|
else
|
||||||
|
"https://github.com/mifki/df-twbt/releases/download/v${version}/twbt-${version}-linux.zip";
|
||||||
sha256 = release.sha256;
|
sha256 = release.sha256;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue