tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
bombsquad: use the wayback machine for stable links
Peter Hoeg
1 year ago
cbba67d3
56d2a400
+26
-20
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
bo
bombsquad
package.nix
+26
-20
pkgs/by-name/bo/bombsquad/package.nix
···
9
9
curl,
10
10
gnugrep,
11
11
libgcc,
12
12
-
makeWrapper,
12
12
+
makeBinaryWrapper,
13
13
makeDesktopItem,
14
14
autoPatchelfHook,
15
15
copyDesktopItems,
···
22
22
{
23
23
x86_64-linux = {
24
24
name = "BombSquad_Linux_x86_64";
25
25
-
hash = "sha256-aujLYzFcKaW0ff7sRdyJ6SvSQowafWVbmwycQfDQUYY=";
25
25
+
hash = "sha256-ICjaNZSCUbslB5pELbI4e+1zXWrZzkCkv69jLRx4dr0=";
26
26
};
27
27
aarch-64-linux = {
28
28
name = "BombSquad_Linux_Arm64";
29
29
-
hash = "sha256-pPP7QZzToTOQtSxzF7Q3ZzlDjUjQWMBM/y79d6Yf38I=";
29
29
+
hash = "sha256-/m0SOQbHssk0CqZJPRLK9YKphup3dtMqkbWGzqcF0+g=";
30
30
};
31
31
}
32
32
.${stdenv.targetPlatform.system} or (throw "${stdenv.targetPlatform.system} is unsupported.");
33
33
+
34
34
+
bombsquadIcon = fetchurl {
35
35
+
url = "https://files.ballistica.net/bombsquad/promo/BombSquadIcon.png";
36
36
+
hash = "sha256-MfOvjVmjhLejrJmdLo/goAM9DTGubnYGhlN6uF2GugA=";
37
37
+
};
38
38
+
33
39
in
34
40
stdenv.mkDerivation (finalAttrs: {
35
41
pname = "bombsquad";
36
42
version = "1.7.37";
37
37
-
sourceRoot = ".";
43
43
+
38
44
src = fetchurl {
39
39
-
url = "https://files.ballistica.net/bombsquad/builds/${archive.name}_${finalAttrs.version}.tar.gz";
45
45
+
url = "https://web.archive.org/web/20240825230506if_/https://files.ballistica.net/bombsquad/builds/${archive.name}_${finalAttrs.version}.tar.gz";
40
46
inherit (archive) hash;
41
47
};
42
48
43
43
-
bombsquadIcon = fetchurl {
44
44
-
url = "https://files.ballistica.net/bombsquad/promo/BombSquadIcon.png";
45
45
-
hash = "sha256-MfOvjVmjhLejrJmdLo/goAM9DTGubnYGhlN6uF2GugA=";
46
46
-
};
49
49
+
sourceRoot = "${archive.name}_${finalAttrs.version}";
47
50
48
48
-
nativeBuildInputs = [
49
49
-
python312
51
51
+
buildInputs = [
50
52
SDL2
53
53
+
libgcc
51
54
libvorbis
52
55
openal
53
53
-
libgcc
54
54
-
makeWrapper
56
56
+
python312
57
57
+
];
58
58
+
59
59
+
nativeBuildInputs = [
55
60
autoPatchelfHook
56
61
copyDesktopItems
62
62
+
makeBinaryWrapper
57
63
];
58
64
59
65
desktopItems = [
···
61
67
name = "bombsquad";
62
68
genericName = "bombsquad";
63
69
desktopName = "BombSquad";
70
70
+
64
71
icon = "bombsquad";
65
72
exec = "bombsquad";
66
73
comment = "An explosive arcade-style party game.";
···
71
78
installPhase = ''
72
79
runHook preInstall
73
80
74
74
-
base=${archive.name}_${finalAttrs.version}
81
81
+
mkdir -p $out/bin $out/libexec $out/share/bombsquad/ba_data
75
82
76
76
-
install -m755 -D $base/bombsquad $out/bin/bombsquad
77
77
-
install -dm755 $base/ba_data $out/usr/share/bombsquad/ba_data
78
78
-
cp -r $base/ba_data $out/usr/share/bombsquad/
83
83
+
install -Dm555 -t $out/libexec ${finalAttrs.meta.mainProgram}
84
84
+
cp -r ba_data $out/share/bombsquad
79
85
80
80
-
wrapProgram "$out/bin/bombsquad" \
86
86
+
makeWrapper "$out/libexec/${finalAttrs.meta.mainProgram}" "$out/bin/${finalAttrs.meta.mainProgram}" \
81
87
--add-flags ${lib.escapeShellArg commandLineArgs} \
82
82
-
--add-flags "-d $out/usr/share/bombsquad"
88
88
+
--add-flags "-d $out/share/bombsquad"
83
89
84
84
-
install -Dm755 ${finalAttrs.bombsquadIcon} $out/usr/share/icons/hicolor/32x32/apps/bombsquad.png
90
90
+
install -Dm755 ${bombsquadIcon} $out/share/icons/hicolor/1024x1024/apps/bombsquad.png
85
91
86
92
runHook postInstall
87
93
'';