From 2704140dd84f02a58a6ea6ed36b453a49cb79cb8 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 8b5babf..a3abf03 100644 --- a/flake.lock +++ b/flake.lock @@ -22,7 +22,9 @@ }, "naersk": { "inputs": { - "nixpkgs": "nixpkgs" + "nixpkgs": [ + "nixpkgs" + ] }, "locked": { "lastModified": 1733346208, @@ -38,20 +40,6 @@ } }, "nixpkgs": { - "locked": { - "lastModified": 1733064805, - "narHash": "sha256-7NbtSLfZO0q7MXPl5hzA0sbVJt6pWxxtGWbaVUDDmjs=", - "rev": "31d66ae40417bb13765b0ad75dd200400e98de84", - "revCount": 715040, - "type": "tarball", - "url": "https://api.flakehub.com/f/pinned/DeterminateSystems/nixpkgs-weekly/0.1.715040%2Brev-31d66ae40417bb13765b0ad75dd200400e98de84/01938b06-3358-73df-a7e1-598cb884b5d0/source.tar.gz" - }, - "original": { - "id": "nixpkgs", - "type": "indirect" - } - }, - "nixpkgs_2": { "locked": { "lastModified": 1733261153, "narHash": "sha256-eq51hyiaIwtWo19fPEeE0Zr2s83DYMKJoukNLgGGpek=", @@ -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 a5a4eb5..e09008b 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: