mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
hlsdk-portable: init at 2.4
This commit is contained in:
41
pkgs/by-name/hl/hlsdk-portable/package.nix
Normal file
41
pkgs/by-name/hl/hlsdk-portable/package.nix
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
stdenv,
|
||||
wafHook,
|
||||
python3,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "hlsdk-portable";
|
||||
|
||||
# Taken from build script: https://github.com/FWGS/hlsdk-portable/blob/afe7d33e15c75fa61fc5a8e287bc484146e7c377/wscript#L10
|
||||
version = "2.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "FWGS";
|
||||
repo = "hlsdk-portable";
|
||||
fetchSubmodules = true;
|
||||
rev = "afe7d33e15c75fa61fc5a8e287bc484146e7c377";
|
||||
hash = "sha256-lR5otfTur9yRcyAt/NkcCIYcqsMg2QQ+EdkA8o18vA0=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
python3
|
||||
wafHook
|
||||
];
|
||||
|
||||
dontAddPrefix = true;
|
||||
|
||||
wafConfigureFlags = [ "-T release" ] ++ lib.optionals stdenv.buildPlatform.is64bit [ "-8" ];
|
||||
|
||||
wafInstallFlags = [ "--destdir=${placeholder "out"}" ];
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/FWGS/hlsdk-portable";
|
||||
description = "Portable crossplatform Half-Life SDK for GoldSource and Xash3D engines";
|
||||
license = lib.licenses.unfree;
|
||||
platforms = lib.platforms.all;
|
||||
maintainers = with lib.maintainers; [ r4v3n6101 ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user