feat(protonhax): use latest release instead of latest git

This commit is contained in:
matt1432 2025-02-11 14:29:23 -05:00
parent e7e04fa569
commit c25978aaa8
6 changed files with 30 additions and 51 deletions
apps/update-sources/src
flake.lockflake.nix
inputs
packages

View file

@ -71,6 +71,10 @@ const main = async() => {
console.log(runNixUpdate('pam-fprint-grosshack'));
}
if (args['ph'] || args['protonhax']) {
console.log(runNixUpdate('protonhax'));
}
if (args['s'] || args['some-sass-language-server']) {
console.log(updateCustomPackage('some-sass-language-server'));
}
@ -134,6 +138,7 @@ const main = async() => {
updatePackage('homepage');
updatePackage('jmusicbot');
updatePackage('pam-fprint-grosshack');
updatePackage('protonhax');
spawnSync('nixFastBuild', [], {

17
flake.lock generated
View file

@ -1648,22 +1648,6 @@
"type": "github"
}
},
"protonhax-src": {
"flake": false,
"locked": {
"lastModified": 1724707175,
"narHash": "sha256-P6DVRz8YUF4JY2tiEVZx16FtK4i/rirRdKKZBslbJxU=",
"owner": "jcnils",
"repo": "protonhax",
"rev": "922a7bbade5a93232b3152cc20a7d8422db09c31",
"type": "github"
},
"original": {
"owner": "jcnils",
"repo": "protonhax",
"type": "github"
}
},
"root": {
"inputs": {
"ags": "ags",
@ -1726,7 +1710,6 @@
"pokemon-colorscripts-src": "pokemon-colorscripts-src",
"pr-tracker": "pr-tracker",
"pre-commit-hooks": "pre-commit-hooks",
"protonhax-src": "protonhax-src",
"secrets": "secrets",
"sioyek-theme-src": "sioyek-theme-src",
"smartinspect-src": "smartinspect-src",

View file

@ -429,12 +429,6 @@
repo = "git-hooks.nix";
type = "github";
};
protonhax-src = {
flake = false;
owner = "jcnils";
repo = "protonhax";
type = "github";
};
secrets = {
inputs = {
nixpkgs.follows = "nixpkgs";

View file

@ -362,10 +362,6 @@ let
owner = "gjsify";
repo = "ts-for-gir";
}
{
owner = "jcnils";
repo = "protonhax";
}
# MPV scripts
{

View file

@ -21,9 +21,7 @@
librespot-auth = pkgs.callPackage ./librespot-auth {};
pam-fprint-grosshack = pkgs.callPackage ./pam-fprint-grosshack {
inherit (inputs) pam-fprint-grosshack-src;
};
pam-fprint-grosshack = pkgs.callPackage ./pam-fprint-grosshack {};
piper = pkgs.callPackage ./piper {
inherit (inputs) piper-src;
@ -36,10 +34,7 @@
proton-ge-latest = pkgs.callPackage ./proton-ge-latest {};
protonhax = pkgs.callPackage ./protonhax {
inherit (inputs) protonhax-src;
inherit mkVersion;
};
protonhax = pkgs.callPackage ./protonhax {};
repl = pkgs.callPackage ./repl {};

View file

@ -1,26 +1,32 @@
{
# nix build inputs
lib,
mkVersion,
stdenv,
protonhax-src,
fetchFromGitHub,
...
}:
stdenv.mkDerivation {
}: let
pname = "protonhax";
version = mkVersion protonhax-src;
version = "1.0.5";
in
stdenv.mkDerivation {
inherit pname version;
src = protonhax-src;
src = fetchFromGitHub {
owner = "jcnils";
repo = "protonhax";
rev = version;
hash = "sha256-5G4MCWuaF/adSc9kpW/4oDWFFRpviTKMXYAuT2sFf9w=";
};
installPhase = ''
install -Dt $out/bin -m755 protonhax
'';
meta = {
license = with lib.licenses; [bsd3];
homepage = "https://github.com/jcnils/protonhax";
description = ''
Tool to help running other programs (i.e. Cheat Engine) inside Steam's proton.
installPhase = ''
install -Dt $out/bin -m755 protonhax
'';
};
}
meta = {
license = with lib.licenses; [bsd3];
homepage = "https://github.com/jcnils/protonhax";
description = ''
Tool to help running other programs (i.e. Cheat Engine) inside Steam's proton.
'';
};
}