From f7f363aa9e29f627e44644a0d77ab76d38b01ece Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Mon, 30 Oct 2023 20:01:16 +0000 Subject: [PATCH] Remove `src` input indirection that invalidates flake for no good reason --- flake.lock | 14 -------------- flake.nix | 6 ++---- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/flake.lock b/flake.lock index 7f8bdb2..c18c20f 100644 --- a/flake.lock +++ b/flake.lock @@ -48,23 +48,9 @@ "inputs": { "naersk": "naersk", "nixpkgs": "nixpkgs_2", - "src": "src", "utils": "utils" } }, - "src": { - "flake": false, - "locked": { - "lastModified": 0, - "narHash": "sha256-BzAD04MXi8kqeGvPrcgQtxYxkLrPuVqMUvoukS6FCng=", - "path": "./.", - "type": "path" - }, - "original": { - "path": "./.", - "type": "path" - } - }, "systems": { "locked": { "lastModified": 1681028828, diff --git a/flake.nix b/flake.nix index ea8c297..13c2217 100644 --- a/flake.nix +++ b/flake.nix @@ -4,11 +4,9 @@ inputs = { utils.url = "github:numtide/flake-utils"; naersk.url = "github:nix-community/naersk"; - src.url = "path:./."; - src.flake = false; }; - outputs = { self, nixpkgs, utils, naersk, src }: + outputs = { self, nixpkgs, utils, naersk }: utils.lib.eachDefaultSystem (system: let pkgs = nixpkgs.legacyPackages."${system}"; naersk-lib = naersk.lib."${system}"; @@ -16,7 +14,7 @@ # `nix build` packages.mxmonzo = naersk-lib.buildPackage { pname = "mxmonzo"; - root = src; + root = ./.; buildInputs = with pkgs; [ openssl