tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
rigsofrods-bin: init at 2022.12
Weijia Wang
2 years ago
e727287d
1b634094
+71
2 changed files
expand all
collapse all
unified
split
pkgs
games
rigsofrods-bin
default.nix
top-level
all-packages.nix
+69
pkgs/games/rigsofrods-bin/default.nix
···
1
1
+
{ lib
2
2
+
, stdenv
3
3
+
, fetchurl
4
4
+
, autoPatchelfHook
5
5
+
, makeWrapper
6
6
+
, unzip
7
7
+
, libGL
8
8
+
, libICE
9
9
+
, libSM
10
10
+
, libX11
11
11
+
, libXrandr
12
12
+
, zlib
13
13
+
, alsa-lib
14
14
+
}:
15
15
+
16
16
+
stdenv.mkDerivation rec {
17
17
+
pname = "rigsofrods-bin";
18
18
+
version = "2022.12";
19
19
+
20
20
+
src = fetchurl {
21
21
+
url = "https://update.rigsofrods.org/rigs-of-rods-linux-2022-12.zip";
22
22
+
hash = "sha256-jj152fd4YHlU6YCVCnN6DKRfmi5+ORpMQVDacy/TPeE=";
23
23
+
};
24
24
+
25
25
+
sourceRoot = ".";
26
26
+
27
27
+
nativeBuildInputs = [
28
28
+
autoPatchelfHook
29
29
+
makeWrapper
30
30
+
unzip
31
31
+
];
32
32
+
33
33
+
buildInputs = [
34
34
+
libGL
35
35
+
libICE
36
36
+
libSM
37
37
+
libX11
38
38
+
libXrandr
39
39
+
stdenv.cc.cc
40
40
+
zlib
41
41
+
];
42
42
+
43
43
+
runtimeDependencies = [
44
44
+
alsa-lib
45
45
+
];
46
46
+
47
47
+
noDumpEnvVars = true;
48
48
+
49
49
+
installPhase = ''
50
50
+
runHook preInstall
51
51
+
52
52
+
mkdir -p $out/bin $out/share/rigsofrods
53
53
+
cp -a . $out/share/rigsofrods
54
54
+
for f in RoR RunRoR; do
55
55
+
makeWrapper $out/share/rigsofrods/$f $out/bin/$f \
56
56
+
--chdir $out/share/rigsofrods
57
57
+
done
58
58
+
59
59
+
runHook postInstall
60
60
+
'';
61
61
+
62
62
+
meta = with lib; {
63
63
+
description = "A free/libre soft-body physics simulator mainly targeted at simulating vehicle physics";
64
64
+
homepage = "https://www.rigsofrods.org";
65
65
+
license = licenses.gpl3Plus;
66
66
+
maintainers = with maintainers; [ raskin wegank ];
67
67
+
platforms = [ "x86_64-linux" ];
68
68
+
};
69
69
+
}
+2
pkgs/top-level/all-packages.nix
···
36068
36068
};
36069
36069
};
36070
36070
36071
36071
+
rigsofrods-bin = callPackage ../games/rigsofrods-bin { };
36072
36072
+
36071
36073
riko4 = callPackage ../games/riko4 { };
36072
36074
36073
36075
rili = callPackage ../games/rili { };