2021-06-29 03:42:37 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchzip
|
|
|
|
, dos2unix
|
2017-06-19 01:48:02 +01:00
|
|
|
, soundPack ? stdenv.mkDerivation {
|
|
|
|
name = "soundsense-soundpack";
|
|
|
|
src = fetchzip {
|
|
|
|
url = "http://df.zweistein.cz/soundsense/soundpack.zip";
|
|
|
|
sha256 = "0qz0mjkp7wp0gxk3ws2x760awv8c9lkacj2fn9bz3gqqnq262ffa";
|
|
|
|
};
|
|
|
|
installPhase = ''
|
|
|
|
cp -r . $out
|
|
|
|
'';
|
2021-06-29 03:42:37 +01:00
|
|
|
}
|
|
|
|
}:
|
2017-06-19 01:48:02 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "2016-1_196";
|
2018-08-16 22:58:22 +01:00
|
|
|
dfVersion = "0.44.12";
|
2017-06-19 01:48:02 +01:00
|
|
|
inherit soundPack;
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "soundsense";
|
2017-06-19 01:48:02 +01:00
|
|
|
src = fetchzip {
|
|
|
|
url = "http://df.zweistein.cz/soundsense/soundSense_${version}.zip";
|
|
|
|
sha256 = "1gkrs69l3xsh858yjp204ddp29m668j630akm7arssc9359wxqkk";
|
|
|
|
};
|
|
|
|
phases = [ "unpackPhase" "buildPhase" "installPhase" ];
|
|
|
|
nativeBuildInputs = [ dos2unix ];
|
|
|
|
buildPhase = ''
|
|
|
|
dos2unix soundSense.sh
|
|
|
|
chmod +x soundSense.sh
|
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
mkdir $out
|
|
|
|
cp -R . $out/soundsense
|
|
|
|
ln -s $out/soundsense/dfhack $out/hack
|
|
|
|
ln -s $soundPack $out/soundsense/packs
|
|
|
|
'';
|
|
|
|
passthru = { inherit version dfVersion; };
|
|
|
|
}
|