Skip to content

Commit 623b612

Browse files
authored
rebels-in-the-sky: init at 1.0.29 (#385836)
2 parents 5ab5ab8 + 35f2072 commit 623b612

File tree

2 files changed

+113
-0
lines changed

2 files changed

+113
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
diff --git a/assets/data/stream_data.json b/assets/data/stream_data.json
2+
index c049ec7..fe51488 100644
3+
--- a/assets/data/stream_data.json
4+
+++ b/assets/data/stream_data.json
5+
@@ -1,18 +1 @@
6+
-[
7+
- {
8+
- "name": "Radio Frittura",
9+
- "url_string": "https://radio.frittura.org/frittura.ogg"
10+
- },
11+
- {
12+
- "name": "Matt Johnson radio",
13+
- "url_string": "https://us2.internet-radio.com/proxy/mattjohnsonradio?mp=/stream"
14+
- },
15+
- {
16+
- "name" : "Lofi 24/7",
17+
- "url_string": "http://usa9.fastcast4u.com/proxy/jamz?mp=/1"
18+
- },
19+
- {
20+
- "name" : "Radio Sarajevo",
21+
- "url_string": "https://cast2.asurahosting.com/proxy/balkanhi/stream"
22+
- }
23+
-]
24+
\ No newline at end of file
25+
+[]
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
{
2+
stdenv,
3+
lib,
4+
fetchFromGitHub,
5+
rustPlatform,
6+
fetchpatch,
7+
cmake,
8+
pkg-config,
9+
alsa-lib,
10+
nix-update-script,
11+
writableTmpDirAsHomeHook,
12+
versionCheckHook,
13+
withRadio ? false,
14+
}:
15+
16+
rustPlatform.buildRustPackage (finalAttrs: {
17+
pname = "rebels-in-the-sky";
18+
version = "1.0.29";
19+
20+
src = fetchFromGitHub {
21+
owner = "ricott1";
22+
repo = "rebels-in-the-sky";
23+
tag = "v${finalAttrs.version}";
24+
hash = "sha256-rWBaD4nxSmr1RZRbc51Sz9Xl2Te2yv4HNuFqWj8KayM=";
25+
};
26+
useFetchCargoVendor = true;
27+
cargoHash = "sha256-ZRxq6/mgXZ33o1AEHnSOt4HJAI1y+F+ysVNvvbb9M28=";
28+
29+
patches =
30+
lib.optionals (!withRadio) [
31+
./disable-radio.patch
32+
]
33+
++ [
34+
# https://github.com/ricott1/rebels-in-the-sky/pull/25
35+
(fetchpatch {
36+
url = "https://github.com/ricott1/rebels-in-the-sky/commit/31778fee783637fe8af09f71754f35c5d15b800a.patch";
37+
hash = "sha256-PO/aY+fB72gQpxE5eaIP/s4xevfQ/Ac1TH5ZEKwpw1I=";
38+
})
39+
];
40+
41+
nativeBuildInputs =
42+
[
43+
cmake
44+
pkg-config
45+
]
46+
++ lib.optionals stdenv.hostPlatform.isDarwin [
47+
rustPlatform.bindgenHook
48+
];
49+
buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ alsa-lib ];
50+
51+
nativeCheckInputs = [
52+
# Save system tests write to home dir
53+
writableTmpDirAsHomeHook
54+
];
55+
56+
nativeInstallCheckInputs = [
57+
versionCheckHook
58+
];
59+
versionCheckProgram = "${placeholder "out"}/bin/rebels";
60+
versionCheckProgramArg = "--version";
61+
# Darwin: "Error: Operation not permitted (os error 1)"
62+
doInstallCheck = !stdenv.hostPlatform.isDarwin;
63+
64+
passthru.updateScript = nix-update-script { };
65+
66+
meta = {
67+
description = "P2P terminal game about spacepirates playing basketball across the galaxy";
68+
longDescription = ''
69+
It's the year 2101. Corporations have taken over the world. The only way to be free is
70+
to join a pirate crew and start plundering the galaxy. The only means of survival is
71+
to play basketball.
72+
73+
Now it's your turn to go out there and make a name for yourself. Create your crew and
74+
start wandering the galaxy in search of worthy basketball opponents.
75+
'';
76+
homepage = "https://frittura.org/";
77+
changelog = "https://github.com/ricott1/rebels-in-the-sky/releases/tag/v${finalAttrs.version}";
78+
license =
79+
with lib.licenses;
80+
[ gpl3Only ]
81+
# The original game soundtrack was generated using AI so its licensing is unclear.
82+
# I couldn't find licensing information regarding other radio stations, so I'm
83+
# assuming they're nonfree.
84+
++ lib.optionals withRadio [ unfree ];
85+
maintainers = with lib.maintainers; [ marcin-serwin ];
86+
mainProgram = "rebels";
87+
};
88+
})

0 commit comments

Comments
 (0)