From 55cb5feb852003b672c271063dd8d92e853585c9 Mon Sep 17 00:00:00 2001 From: eriedaberrie Date: Tue, 16 Apr 2024 09:53:53 -0700 Subject: [PATCH] Stop importing nixpkgs in the flake --- flake.lock | 6 +++--- flake.nix | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/flake.lock b/flake.lock index 12543de..726651e 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1701718080, - "narHash": "sha256-6ovz0pG76dE0P170pmmZex1wWcQoeiomUZGggfH9XPs=", + "lastModified": 1712963716, + "narHash": "sha256-WKm9CvgCldeIVvRz87iOMi8CFVB1apJlkUT4GGvA0iM=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "2c7f3c0fb7c08a0814627611d9d7d45ab6d75335", + "rev": "cfd6b5fc90b15709b780a5a1619695a88505a176", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index 1f5afec..2d7b709 100644 --- a/flake.nix +++ b/flake.nix @@ -12,11 +12,11 @@ "x86_64-linux" "aarch64-linux" ]; - pkgsFor = system: import nixpkgs {inherit system;}; + pkgsFor = nixpkgs.legacyPackages; in { devShells = genSystems ( system: let - pkgs = pkgsFor system; + pkgs = pkgsFor.${system}; in { default = pkgs.mkShell { nativeBuildInputs = [ @@ -46,6 +46,6 @@ } ); - formatter = genSystems (system: (pkgsFor system).alejandra); + formatter = genSystems (system: pkgsFor.system.alejandra); }; }