From 936fe92762dc18c7dd03627745a2911bfa3d1926 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 6 Feb 2022 10:14:45 +0100 Subject: [PATCH] build: explain current alternative --- flake.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/flake.nix b/flake.nix index 0fda72eb..4ae0fd2d 100644 --- a/flake.nix +++ b/flake.nix @@ -12,6 +12,11 @@ defaultPackage = pkgs.stdenv.mkDerivation rec { name = "lldpd"; # We should be able to just use ./., but we have libevent as a submodule. + # Currently, an alternative would be to use: + # nix build "git+file://$(pwd)?submodules=1" + # See: + # - https://github.com/NixOS/nix/pull/5434 + # - https://github.com/NixOS/nix/pull/5497 src = pkgs.nix-gitignore.gitignoreSource [ ] ./.; configureFlags = [ "--localstatedir=/var" -- 2.39.5