gamma-launcher: 2.5 -> 2.6 (#469424)

This commit is contained in:
nixpkgs-ci[bot]
2025-12-10 22:47:34 +00:00
committed by GitHub
+25 -3
View File
@@ -1,19 +1,29 @@
{
lib,
python3Packages,
_7zz,
fetchFromGitHub,
versionCheckHook,
runCommand,
}:
let
# gamma-launcher looks for the "7z", not "7zz"
_7z = runCommand "7z" { } ''
mkdir -p $out/bin
ln -s ${_7zz}/bin/7zz $out/bin/7z
'';
in
python3Packages.buildPythonApplication rec {
pname = "gamma-launcher";
version = "2.5";
version = "2.6";
pyproject = true;
src = fetchFromGitHub {
owner = "Mord3rca";
repo = "gamma-launcher";
tag = "v${version}";
hash = "sha256-qzjfgDFimEL6vtsJBubY6fHsokilDB248WwHJt3F7fI=";
hash = "sha256-QegptRWMUKpkzsHBdT6KlyyWpmrIuvcyCRvWT9Te3DQ=";
};
build-system = [ python3Packages.setuptools ];
@@ -33,13 +43,25 @@ python3Packages.buildPythonApplication rec {
nativeCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
postFixup = ''
wrapProgram $out/bin/gamma-launcher \
--prefix PATH : "${
lib.makeBinPath [
_7z
]
}"
'';
meta = {
description = "Python cli to download S.T.A.L.K.E.R. GAMMA";
changelog = "https://github.com/Mord3rca/gamma-launcher/releases/tag/v${version}";
homepage = "https://github.com/Mord3rca/gamma-launcher";
mainProgram = "gamma-launcher";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ DrymarchonShaun ];
maintainers = with lib.maintainers; [
DrymarchonShaun
bbigras
];
platforms = lib.platforms.linux;
};
}