Merge pull request #86663 from helsinki-systems/init-left4gore
left4gore: Init at 2.3
This commit is contained in:
commit
f806b3c81b
48
pkgs/games/left4gore/default.nix
Normal file
48
pkgs/games/left4gore/default.nix
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
{ stdenvNoCC, lib, fetchurl, buildFHSUserEnv }:
|
||||||
|
|
||||||
|
let
|
||||||
|
version = "2.3";
|
||||||
|
|
||||||
|
# Unwrapped package, for putting into the FHS env
|
||||||
|
left4gore-unwrapped = stdenvNoCC.mkDerivation {
|
||||||
|
pname = "left4gore-unwrapped";
|
||||||
|
inherit version;
|
||||||
|
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://www.left4gore.com/dist/left4gore-${version}-linux.tar.gz";
|
||||||
|
sha256 = "1n57nh32ybn6kirn8djh0nsjx6m84c0jfi1x8r4w2qr0qky3z7p0";
|
||||||
|
};
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
cp left4gore $out/bin
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
# FHS env, as patchelf will not work
|
||||||
|
env = buildFHSUserEnv {
|
||||||
|
name = "left4gore-env-${version}";
|
||||||
|
targetPkgs = _: [ left4gore-unwrapped ];
|
||||||
|
runScript = "left4gore";
|
||||||
|
};
|
||||||
|
|
||||||
|
in stdenvNoCC.mkDerivation {
|
||||||
|
pname = "left4gore";
|
||||||
|
inherit version;
|
||||||
|
|
||||||
|
dontUnpack = true;
|
||||||
|
dontConfigure = true;
|
||||||
|
dontBuild = true;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
ln -s ${env}/bin/* $out/bin/left4gore
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "http://www.left4gore.com";
|
||||||
|
description = "Memory patcher which adds the gore back into Left 4 Dead 2";
|
||||||
|
license = licenses.unfree; # Probably the best choice
|
||||||
|
maintainers = with maintainers; [ das_j ];
|
||||||
|
};
|
||||||
|
}
|
@ -24783,6 +24783,8 @@ in
|
|||||||
|
|
||||||
legendary-gl = python38Packages.callPackage ../games/legendary-gl { };
|
legendary-gl = python38Packages.callPackage ../games/legendary-gl { };
|
||||||
|
|
||||||
|
left4gore-bin = callPackage ../games/left4gore { };
|
||||||
|
|
||||||
lgogdownloader = callPackage ../games/lgogdownloader { };
|
lgogdownloader = callPackage ../games/lgogdownloader { };
|
||||||
|
|
||||||
liberal-crime-squad = callPackage ../games/liberal-crime-squad { };
|
liberal-crime-squad = callPackage ../games/liberal-crime-squad { };
|
||||||
|
Loading…
Reference in New Issue
Block a user