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