Skip to content

Commit

Permalink
build: explain current alternative
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentbernat committed Feb 6, 2022
1 parent d1db83d commit 936fe92
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 936fe92

Please sign in to comment.