From e2b4b3127dfdd76a7d31ccc0be5e8d1ec6c30c6e Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Sat, 4 Jun 2022 22:30:34 +0100 Subject: [PATCH] Simplify Flake (remove 'src' input that causes problem on 'old' Nixes) --- flake.lock | 13 ------------- flake.nix | 6 ++---- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/flake.lock b/flake.lock index d989260..41fa965 100644 --- a/flake.lock +++ b/flake.lock @@ -50,22 +50,9 @@ "inputs": { "naersk": "naersk", "nixpkgs": "nixpkgs_2", - "src": "src", "utils": "utils" } }, - "src": { - "flake": false, - "locked": { - "narHash": "sha256-1/06n6MpN2m2LMteAwFqZ2qWADpGSo7MFQplLFEJRSc=", - "path": "..", - "type": "path" - }, - "original": { - "path": "..", - "type": "path" - } - }, "utils": { "locked": { "lastModified": 1648297722, diff --git a/flake.nix b/flake.nix index e429505..4d27e0d 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.quickpeep = naersk-lib.buildPackage { pname = "quickpeep"; - root = src; + root = ./.; buildInputs = with pkgs; [ openssl pkgconfig