node/tools/nix/pkgs.nix
Antoine du Hamel 3db22062cf
tools: fix timeout errors in lint-nix job
PR-URL: https://github.com/nodejs/node/pull/62265
Fixes: https://github.com/nodejs/node/issues/62219
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: René <contact.9a5d6388@renegade334.me.uk>
2026-03-17 16:36:20 +00:00

21 lines
651 B
Nix

arg:
let
repo = "https://github.com/NixOS/nixpkgs";
rev = "f82ce7af0b79ac154b12e27ed800aeb97413723c";
nixpkgs = import (builtins.fetchTarball {
url = "${repo}/archive/${rev}.tar.gz";
sha256 = "0dkkyyk3y8g1a7fs4rv3lqrsmxf60vrk3q93wl7yl6ggjgds79id";
}) arg;
in
nixpkgs
// {
nixfmt-tree = nixpkgs.nixfmt-tree.overrideAttrs (old: {
patches = (old.patches or [ ]) ++ [
(nixpkgs.fetchpatch2 {
url = "https://github.com/numtide/treefmt/commit/b96016b4e38ffc76518087b3b0c9bbfa190d5225.patch?full_index=1";
revert = true;
hash = "sha256-DcxT2OGPX6Kmxhqa56DjZsSh2hoyhPyVmE17ULeryv8=";
})
];
});
}