Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cro-mag-rally: init at 3.0.0 #179978

Merged
merged 1 commit into from
Feb 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions pkgs/by-name/cr/cro-mag-rally/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{ lib
, stdenv
, fetchFromGitHub
, SDL2
, cmake
, makeWrapper
}:

stdenv.mkDerivation {
pname = "CroMagRally";
version = "3.0.0-unstable-2023-05-21";

src = fetchFromGitHub {
owner = "jorio";
repo = "CroMagRally";
rev = "5983de40c180b50bbbec8b04f5f5f1ceccd1901b";
hash = "sha256-QbUkrNY7DZQts8xaimE83yXpCweKvnn0uDb1CawLfEE=";
fetchSubmodules = true;
};

nativeBuildInputs = [
cmake
makeWrapper
];
buildInputs = [
SDL2
];

cmakeFlags = [ "-DCMAKE_BUILD_TYPE=Release" ];

installPhase = ''
runHook preInstall
mkdir -p "$out/share/CroMagRally"
mv Data ReadMe.txt "$out/share/CroMagRally/"
install -Dm755 {.,$out/bin}/CroMagRally
wrapProgram $out/bin/CroMagRally --chdir "$out/share/CroMagRally"
install -Dm644 $src/packaging/cromagrally.desktop $out/share/applications/cromagrally.desktop
install -Dm644 $src/packaging/cromagrally-desktopicon.png $out/share/pixmaps/cromagrally-desktopicon.png
runHook postInstall
'';

meta = with lib; {
description = "A port of Cro-Mag Rally, a 2000 Macintosh game by Pangea Software, for modern operating systems";
homepage = "https://github.com/jorio/CroMagRally";
changelog = "https://github.com/jorio/CroMagRally/releases";
license = licenses.cc-by-sa-40;
maintainers = with maintainers; [ lux ];
platforms = platforms.linux;
mainProgram = "CroMagRally";
};
}
Loading