* Re-enable support for substitutes in the normaliser.
* A better substitute mechanism. Instead of generating a store expression for each store path for which we have a substitute, we can have a single store expression that builds a generic program that is invoked to build the desired store path, which is passed as an argument. This means that operations like `nix-pull' only produce O(1) files instead of O(N) files in the store when registering N substitutes. (It consumes O(N) database storage, of course, but that's not a performance problem). * Added a test for the substitute mechanism. * `nix-store --substitute' reads the substitutes from standard input, instead of from the command line. This prevents us from running into the kernel's limit on command line length.
Showing
- src/libstore/normalise.cc 218 additions, 23 deletionssrc/libstore/normalise.cc
- src/libstore/store.cc 107 additions, 58 deletionssrc/libstore/store.cc
- src/libstore/store.hh 26 additions, 2 deletionssrc/libstore/store.hh
- src/nix-env/main.cc 1 addition, 1 deletionsrc/nix-env/main.cc
- src/nix-store/main.cc 31 additions, 23 deletionssrc/nix-store/main.cc
- tests/Makefile.am 2 additions, 1 deletiontests/Makefile.am
- tests/substituter.builder.sh 22 additions, 0 deletionstests/substituter.builder.sh
- tests/substituter.nix.in 6 additions, 0 deletionstests/substituter.nix.in
- tests/substitutes.nix.in 6 additions, 0 deletionstests/substitutes.nix.in
- tests/substitutes.sh 25 additions, 0 deletionstests/substitutes.sh
Loading
Please register or sign in to comment