Merge pull request #238214 from hughobrien/patcher9x

This commit is contained in:
Sandro 2023-07-05 14:52:54 +02:00 committed by GitHub
commit 233cf3978c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,47 @@
{ fasm, lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation (finalAttr: {
name = "patcher9x";
version = "0.8.50";
srcs = [
(fetchFromGitHub {
owner = "JHRobotics";
repo = "patcher9x";
rev = "v${finalAttr.version}";
hash = "sha256-TZw2+R7Dzojzxzal1Wp8jhe5gwU4CfZDROITi5Z+auo=";
name = "src";
})
(fetchFromGitHub {
owner = "JHRobotics";
repo = "nocrt";
rev = "f65cc7ef2a3cccd6264b2eb265d7fffbecb06ba4";
hash = "sha256-oeHcK9zYMDWk5sWfzYqLtC3MAJVtcaDJy4PvUGrxiPE=";
name = "nocrt";
})
];
buildInputs = [ fasm ];
sourceRoot = "src";
hardeningDisable = [ "fortify" ];
preBuild = ''
rmdir nocrt
ln -s ../nocrt .
'';
installPhase = ''
runHook preInstall
install -D patcher9x $out/bin/patcher9x
runHook postInstall
'';
meta = with lib; {
description = "Patch for Windows 95/98/98 SE/Me to fix CPU issues";
homepage = "https://github.com/JHRobotics/patcher9x";
license = licenses.mit;
maintainers = with maintainers; [ hughobrien ];
platforms = platforms.linux;
};
})

View file

@ -939,6 +939,8 @@ with pkgs;
pacup = callPackage ../tools/package-management/pacup { };
patcher9x = callPackage ../development/tools/patcher9x { };
perseus-cli = callPackage ../development/tools/perseus-cli {
inherit (darwin.apple_sdk.frameworks) CoreServices;
};