From 90b2058c673a0a71ab8824fde6d500ff9eff21b2 Mon Sep 17 00:00:00 2001 From: Jason Yundt Date: Thu, 19 Dec 2024 09:55:18 -0500 Subject: [PATCH] =?UTF-8?q?Make=20naersk=E2=80=99s=20nixpkgs=20input=20fol?= =?UTF-8?q?low=20our=20nixpkgs=20input?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This change gets rid of an unnecessary extra instance of Nixpkgs. Having less instances of Nixpkgs will (hopefully) make things faster. --- flake.lock | 20 ++++---------------- flake.nix | 5 ++++- 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/flake.lock b/flake.lock index 135f575..2900576 100644 --- a/flake.lock +++ b/flake.lock @@ -22,7 +22,9 @@ }, "naersk": { "inputs": { - "nixpkgs": "nixpkgs" + "nixpkgs": [ + "nixpkgs" + ] }, "locked": { "lastModified": 1736269059, @@ -38,20 +40,6 @@ } }, "nixpkgs": { - "locked": { - "lastModified": 1736241350, - "narHash": "sha256-CHd7yhaDigUuJyDeX0SADbTM9FXfiWaeNyY34FL1wQU=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "8c9fd3e564728e90829ee7dbac6edc972971cd0f", - "type": "github" - }, - "original": { - "id": "nixpkgs", - "type": "indirect" - } - }, - "nixpkgs_2": { "locked": { "lastModified": 1736200483, "narHash": "sha256-JO+lFN2HsCwSLMUWXHeOad6QUxOuwe9UOAF/iSl1J4I=", @@ -69,7 +57,7 @@ "inputs": { "fenix": "fenix", "naersk": "naersk", - "nixpkgs": "nixpkgs_2" + "nixpkgs": "nixpkgs" } }, "rust-analyzer-src": { diff --git a/flake.nix b/flake.nix index b56484f..b9e6ea2 100644 --- a/flake.nix +++ b/flake.nix @@ -7,7 +7,10 @@ inputs.nixpkgs.follows = "nixpkgs"; }; - naersk.url = "https://flakehub.com/f/nix-community/naersk/0.1.*"; + naersk = { + url = "https://flakehub.com/f/nix-community/naersk/0.1.*"; + inputs.nixpkgs.follows = "nixpkgs"; + }; }; outputs = { self, ... }@inputs: