From c5a5201f30f7cd0fa81c49a9edcea6cadf9165b6 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Fri, 15 Mar 2024 18:25:08 +0100 Subject: [PATCH] flake: naersk.nixpkgs follows nixpkgs One less nixpkgs to download. That way, the dev-shell and the package are actually built from the same package set. --- flake.lock | 20 ++++---------------- flake.nix | 1 + 2 files changed, 5 insertions(+), 16 deletions(-) diff --git a/flake.lock b/flake.lock index cc0e9b8..b7351c4 100644 --- a/flake.lock +++ b/flake.lock @@ -2,7 +2,9 @@ "nodes": { "naersk": { "inputs": { - "nixpkgs": "nixpkgs" + "nixpkgs": [ + "nixpkgs" + ] }, "locked": { "lastModified": 1698420672, @@ -20,20 +22,6 @@ } }, "nixpkgs": { - "locked": { - "lastModified": 1704161960, - "narHash": "sha256-QGua89Pmq+FBAro8NriTuoO/wNaUtugt29/qqA8zeeM=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "63143ac2c9186be6d9da6035fa22620018c85932", - "type": "github" - }, - "original": { - "id": "nixpkgs", - "type": "indirect" - } - }, - "nixpkgs_2": { "locked": { "lastModified": 1704161960, "narHash": "sha256-QGua89Pmq+FBAro8NriTuoO/wNaUtugt29/qqA8zeeM=", @@ -52,7 +40,7 @@ "root": { "inputs": { "naersk": "naersk", - "nixpkgs": "nixpkgs_2", + "nixpkgs": "nixpkgs", "utils": "utils" } }, diff --git a/flake.nix b/flake.nix index 52aca3a..59f7ee6 100644 --- a/flake.nix +++ b/flake.nix @@ -1,6 +1,7 @@ { inputs = { naersk.url = "github:nix-community/naersk/master"; + naersk.inputs.nixpkgs.follows = "nixpkgs"; nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; utils.url = "github:numtide/flake-utils"; };