From e5970b0149bbaba81977b7fe3ab52d38d4a00950 Mon Sep 17 00:00:00 2001 From: NullBite Date: Tue, 25 Feb 2025 16:56:10 -0500 Subject: [PATCH] flake: treefmt-nix follow nixpkgs unstable --- flake.lock | 20 +++----------------- flake.nix | 5 ++++- 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/flake.lock b/flake.lock index c398557..3af069c 100644 --- a/flake.lock +++ b/flake.lock @@ -1222,22 +1222,6 @@ "type": "github" } }, - "nixpkgs_3": { - "locked": { - "lastModified": 1735554305, - "narHash": "sha256-zExSA1i/b+1NMRhGGLtNfFGXgLtgo+dcuzHzaWA6w3Q=", - "owner": "nixos", - "repo": "nixpkgs", - "rev": "0e82ab234249d8eee3e8c91437802b32c74bb3fd", - "type": "github" - }, - "original": { - "owner": "nixos", - "ref": "nixpkgs-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, "pre-commit-hooks": { "inputs": { "flake-compat": "flake-compat_2", @@ -1585,7 +1569,9 @@ }, "treefmt-nix": { "inputs": { - "nixpkgs": "nixpkgs_3" + "nixpkgs": [ + "nixpkgs-unstable" + ] }, "locked": { "lastModified": 1739829690, diff --git a/flake.nix b/flake.nix index e2c6d88..ef83d88 100644 --- a/flake.nix +++ b/flake.nix @@ -15,7 +15,10 @@ flake-parts.url = "github:hercules-ci/flake-parts"; - treefmt-nix.url = "github:numtide/treefmt-nix"; + treefmt-nix = { + url = "github:numtide/treefmt-nix"; + inputs.nixpkgs.follows = "nixpkgs-unstable"; + }; # this is nice so one-off impure scripts can interact with attributes in # this flake