mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 09:43:14 +00:00
60788745c9
Currently, if you try to build a NixOS config including channel.nix, e.g.: nix-build -I nixpkgs=. -I nixos-config=nixos/modules/installer/cd-dvd/installation-cd-minimal.nix nixos -A config.system.build.isoImage twice in a row, you end up with two different build results. This is caused by the 'result' symlink of the first build affecting the channel contents of the second build. If we use filterSource with a predicate that ignores the 'result' symlinks, the problem is gone. Do the same thing for VIM/Emacs swap/backup files to avoid even more 'spurious' rebuilds. Additionally, filter out the '.git' directory at the same time, as we 'rm -rf' it from the result anyway. This avoids a considerable amount of unnecessary file I/O copying and deleting the .git directory. |
||
---|---|---|
.. | ||
channel.nix | ||
installation-cd-base.nix | ||
installation-cd-graphical-gnome.nix | ||
installation-cd-graphical-kde-new-kernel.nix | ||
installation-cd-graphical-kde.nix | ||
installation-cd-minimal-new-kernel.nix | ||
installation-cd-minimal.nix | ||
iso-image.nix | ||
sd-image-aarch64.nix | ||
sd-image-armv7l-multiplatform.nix | ||
sd-image-raspberrypi.nix | ||
sd-image.nix | ||
system-tarball-fuloong2f.nix | ||
system-tarball-pc-readme.txt | ||
system-tarball-pc.nix | ||
system-tarball-sheevaplug.nix | ||
system-tarball.nix |