nixpkgs/pkgs/games/openrw/default.nix
Profpatsch 4a7f99d55d treewide: with stdenv.lib; in meta -> with lib;
Part of: https://github.com/NixOS/nixpkgs/issues/108938

meta = with stdenv.lib;

is a widely used pattern. We want to slowly remove
the `stdenv.lib` indirection and encourage people
to use `lib` directly. Thus let’s start with the meta
field.

This used a rewriting script to mostly automatically
replace all occurances of this pattern, and add the
`lib` argument to the package header if it doesn’t
exist yet.

The script in its current form is available at
https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
2021-01-11 10:38:22 +01:00

32 lines
1.1 KiB
Nix

{ lib, stdenv, fetchgit, cmake, sfml, libGLU, libGL, bullet, glm, libmad, xlibsWrapper, openal
, SDL2, boost, ffmpeg_3, Cocoa, OpenAL }:
stdenv.mkDerivation {
version = "2019-10-26";
pname = "openrw";
src = fetchgit {
url = "https://github.com/rwengine/openrw";
rev = "51b7264744d1aaa20de3b86a7a4e92a9930881ba";
sha256 = "04s088wfxkfmb4dxdvad611yxj8smxlnxdm5xy81zldfzybvx8dg";
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake ];
buildInputs = [
sfml libGLU libGL bullet glm libmad xlibsWrapper openal SDL2 boost ffmpeg_3
] ++ stdenv.lib.optionals stdenv.isDarwin [ OpenAL Cocoa ];
meta = with lib; {
description = "Unofficial open source recreation of the classic Grand Theft Auto III game executable";
homepage = "https://github.com/rwengine/openrw";
license = licenses.gpl3;
longDescription = ''
OpenRW is an open source re-implementation of Rockstar Games' Grand Theft
Auto III, a classic 3D action game first published in 2001.
'';
maintainers = with maintainers; [ kragniz ];
platforms = platforms.all;
};
}