Skip to content

Commit

Permalink
Merge pull request #222210 from wegank/rigsofrods-bin
Browse files Browse the repository at this point in the history
rigsofrods-bin: init at 2022.12
  • Loading branch information
wegank authored Mar 22, 2023
2 parents 293e39e + e727287 commit 276bb35
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
69 changes: 69 additions & 0 deletions pkgs/games/rigsofrods-bin/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{ lib
, stdenv
, fetchurl
, autoPatchelfHook
, makeWrapper
, unzip
, libGL
, libICE
, libSM
, libX11
, libXrandr
, zlib
, alsa-lib
}:

stdenv.mkDerivation rec {
pname = "rigsofrods-bin";
version = "2022.12";

src = fetchurl {
url = "https://update.rigsofrods.org/rigs-of-rods-linux-2022-12.zip";
hash = "sha256-jj152fd4YHlU6YCVCnN6DKRfmi5+ORpMQVDacy/TPeE=";
};

sourceRoot = ".";

nativeBuildInputs = [
autoPatchelfHook
makeWrapper
unzip
];

buildInputs = [
libGL
libICE
libSM
libX11
libXrandr
stdenv.cc.cc
zlib
];

runtimeDependencies = [
alsa-lib
];

noDumpEnvVars = true;

installPhase = ''
runHook preInstall
mkdir -p $out/bin $out/share/rigsofrods
cp -a . $out/share/rigsofrods
for f in RoR RunRoR; do
makeWrapper $out/share/rigsofrods/$f $out/bin/$f \
--chdir $out/share/rigsofrods
done
runHook postInstall
'';

meta = with lib; {
description = "A free/libre soft-body physics simulator mainly targeted at simulating vehicle physics";
homepage = "https://www.rigsofrods.org";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ raskin wegank ];
platforms = [ "x86_64-linux" ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -36067,6 +36067,8 @@ with pkgs;
};
};

rigsofrods-bin = callPackage ../games/rigsofrods-bin { };

riko4 = callPackage ../games/riko4 { };

rili = callPackage ../games/rili { };
Expand Down

0 comments on commit 276bb35

Please sign in to comment.