feat: update nixpkgs
runner nix smoke / nix label and flake smoke (push) Failing after 40s

This commit is contained in:
2026-09-26 21:44:19 +00:00
parent d9b2a4e787
commit fd59158ed6
4 changed files with 16 additions and 18 deletions
+10 -13
View File
@@ -32,14 +32,16 @@ let
chmod +x bin/pnpm.cjs bin/pnpx.cjs
'';
});
pnpmForNix = (writeShellScriptBin "pnpm" ''
pnpmForNix = ((writeShellScriptBin "pnpm" ''
if [ "''${1-}" = config ] && [ "''${2-}" = set ] && [ "''${3-}" = manage-package-manager-versions ]; then
exit 0
fi
exec ${pnpm}/bin/pnpm "$@"
'').overrideAttrs (_: {
version = "11.9.0";
});
})) // {
nodejs-slim = nodejs;
};
pnpmPreInstall = ''
export NODE_OPTIONS=--dns-result-order=ipv4first
'';
@@ -52,9 +54,9 @@ let
pname = "gitea-frontend";
inherit version src;
pnpm = pnpmForNix;
fetcherVersion = 3;
fetcherVersion = 4;
prePnpmInstall = pnpmPreInstall;
hash = "sha256-rXJmmnaA61YoN7xrmA18MBLFpRRMhWd4gwXGVd5eKpU=";
hash = "sha256-rduD3GqgdUlF95HTnKe8smToyHop4RrO6QDTRzh2RCk=";
};
prePnpmInstall = pnpmPreInstall;
@@ -88,21 +90,16 @@ buildGo126Module rec {
patches = [ ./static-root-path.patch ];
overrideModAttrs = _: {
postPatch = ''
substituteInPlace go.mod \
--replace-fail "go 1.26.4" "go 1.26"
'';
};
postPatch = ''
substituteInPlace modules/setting/server.go --subst-var data
substituteInPlace go.mod \
--replace-fail "go 1.26.4" "go 1.26"
'';
subPackages = [ "." ];
postBuild = ''
mv "$GOPATH/bin/gitea.dev" "$GOPATH/bin/gitea"
'';
nativeBuildInputs = [ makeWrapper ];
tags = lib.optionals sqliteSupport [
+1
View File
@@ -2,6 +2,7 @@ savePrefix: ''
dedupePeerDependents: false
updateNotifier: false
minimumReleaseAge: 0
trustLockfile: true
allowBuilds:
'@scarf/scarf': false