1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-19 03:47:13 -04:00
nixpkgs/nixos/modules
Tuomas Tynkkynen 60788745c9 channel.nix: Use filterSource to exclude unnecessary files from nixpkgs
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.
2017-03-25 01:42:28 +02:00
..
config Merge branch 'master' into staging 2017-03-23 13:31:28 +01:00
hardware
i18n/input-method
installer channel.nix: Use filterSource to exclude unnecessary files from nixpkgs 2017-03-25 01:42:28 +02:00
misc
profiles
programs
security security-wrapper: link old wrapper dir to new one 2017-03-23 15:57:30 +01:00
services Merge branch 'staging' 2017-03-24 21:07:55 +01:00
system grub module: fix useOSProber when installing grub as EFI 2017-03-23 12:53:44 +01:00
tasks
testing
virtualisation google-compute-image: copy store paths with rsync 2017-03-24 02:14:10 +01:00
module-list.nix
rename.nix Merge branch 'master' into staging 2017-03-23 13:31:28 +01:00