]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
build: explain current alternative
authorVincent Bernat <vincent@bernat.ch>
Sun, 6 Feb 2022 09:14:45 +0000 (10:14 +0100)
committerVincent Bernat <vincent@bernat.ch>
Sun, 6 Feb 2022 09:15:45 +0000 (10:15 +0100)
flake.nix

index 0fda72eb3710ee81c746ca10562a49342175f343..4ae0fd2daa02c220fbbbf51397334575948367a4 100644 (file)
--- a/flake.nix
+++ b/flake.nix
         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"