mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-23 14:36:16 +02:00
7dd91d3779
sharing package directories (i.e., the result of building a Nix descriptor). `nix-pull-prebuilts' obtains a list of all known prebuilts by consulting the paths and URLs specified in $prefix/etc/nix/prebuilts.conf. The mappings ($pkghash, $prebuilthash) and ($prebuilthash, $location) are registered with Nix so that it can use the prebuilt with hash $prebuilthash when installing a package with hash $pkghash by downloading and unpacking $location. `nix-push-prebuilts' creates prebuilts for all packages for which no prebuilt is known to exist. It can then optionally upload these to the network through rsync. `nix-[pull|push]-prebuilts' just provide a policy. Nix provides the mechanism through the `nix [export|regprebuilt|regurl]' commands.
9 lines
382 B
Makefile
9 lines
382 B
Makefile
bin_SCRIPTS = nix-generate-regscript nix-switch nix-collect-garbage \
|
|
nix-pull-prebuilts nix-push-prebuilts
|
|
|
|
install-exec-local:
|
|
$(INSTALL) -d $(sysconfdir)/profile.d
|
|
$(INSTALL_PROGRAM) nix-profile.sh $(sysconfdir)/profile.d/nix.sh
|
|
$(INSTALL) -d $(sysconfdir)/nix
|
|
# !!! don't overwrite local modifications
|
|
$(INSTALL_PROGRAM) prebuilts.conf $(sysconfdir)/nix/prebuilts.conf
|