blob: fdb25bd1059832fdd9a784cc1dd8b0b35c2e5295 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{
lib,
stdenv,
fetchzip,
dos2unix,
soundPack ? stdenv.mkDerivation {
name = "soundsense-soundpack";
src = fetchzip {
url = "https://df.zweistein.cz/soundsense/soundpack.zip";
hash = "sha256-yjlhBLYYv/FXsk5IpiZNDG2ugDldaD5mf+Dyc6es4GM=";
};
installPhase = ''
cp -r . $out
'';
},
}:
stdenv.mkDerivation rec {
version = "2016-1_196";
dfVersion = "0.44.12";
inherit soundPack;
pname = "soundsense";
src = fetchzip {
url = "https://df.zweistein.cz/soundsense/soundSense_${version}.zip";
hash = "sha256-c+LOUxmJaZ3VqVOBYSQypiZxWyNAXOlRQVD3QZPReb4=";
};
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; };
meta = {
description = "Plays sound based on Dwarf Fortress game logs";
maintainers = with lib.maintainers; [
numinit
];
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
license = lib.licenses.gpl3Only;
platforms = lib.platforms.all;
homepage = "https://df.zweistein.cz/soundsense";
};
}
|