3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos
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
..
doc/manual Merge branch 'master' into staging 2017-03-23 13:31:28 +01:00
lib makeTest: don't rely on makeWrapper not quoting newlines 2017-03-20 16:15:38 +03:00
maintainers nova-image: refactoring 2017-02-24 22:17:52 +01:00
modules channel.nix: Use filterSource to exclude unnecessary files from nixpkgs 2017-03-25 01:42:28 +02:00
tests nixos/sddm: test automatic and manual login 2017-03-24 10:39:13 -05:00
COPYING
default.nix Remove nixFallback 2017-03-06 15:54:50 +01:00
README
release-combined.nix nixos/sddm: test automatic and manual login 2017-03-24 10:39:13 -05:00
release-small.nix nixos/release-small.nix: cleanup to use default versions 2017-01-27 15:33:54 +01:00
release.nix nixos/sddm: test automatic and manual login 2017-03-24 10:39:13 -05:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
http://nixos.org/nixos and in the manual in doc/manual.