From 5a5decd2eb9a32276e7f5e0f8f0aff5bb69c6d36 Mon Sep 17 00:00:00 2001 From: Naïm Favier Date: Tue, 7 Feb 2023 13:58:34 +0100 Subject: doc: use `gitignoreSource` Running `make -C doc` to build the manual locally leaves .xml artifacts in the tree. These are ignored by git, but they still get included in the build when not using flakes, which causes the corresponding chapters not to be built. --- doc/default.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'doc/default.nix') diff --git a/doc/default.nix b/doc/default.nix index 1d5fa4811a369..ac405c3790380 100644 --- a/doc/default.nix +++ b/doc/default.nix @@ -1,6 +1,5 @@ { pkgs ? (import ./.. { }), nixpkgs ? { }}: let - lib = pkgs.lib; doc-support = import ./doc-support { inherit pkgs nixpkgs; }; in pkgs.stdenv.mkDerivation { name = "nixpkgs-manual"; @@ -15,7 +14,7 @@ in pkgs.stdenv.mkDerivation { xmlformat ]; - src = lib.cleanSource ./.; + src = pkgs.nix-gitignore.gitignoreSource [] ./.; postPatch = '' ln -s ${doc-support} ./doc-support/result -- cgit 1.4.1