nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add optional IPv6 support for nix-binary-cache

+12
+12
pkgs/servers/http/nix-binary-cache/nix-binary-cache-start.in
··· 39 39 echo "PORT=$1" 40 40 shift; 41 41 ;; 42 + --ipv6) 43 + shift; 44 + echo "USE_IPV6=enable" 45 + ;; 42 46 --help) 43 47 cat <<EOF >&2 44 48 "$0": start the Nix binary cache serving the Nix store dynamically. ··· 60 56 61 57 --nix-remote 'daemon' or empty string '' - whether to use daemon for store 62 58 operations 59 + 60 + --ipv6 enable ipv6 63 61 64 62 --help show help and exit 65 63 EOF ··· 87 81 cgi.assign = ( \".cgi\" => \"@shell@\" ) 88 82 setenv.add-request-header = ( \"NIX_BINARY_CACHE_CONFIG\" => \"$workingdir/nix-binary-cache.conf\" ) 89 83 " > lighttpd.conf 84 + 85 + test -n "$USE_IPV6" && echo " 86 + \$SERVER[\"socket\"] == \"[::]:$PORT\" { 87 + server.use-ipv6 = \"enable\" 88 + } 89 + " >> lighttpd.conf 90 90 91 91 cp @out@/nix-binary-cache.cgi . 92 92 cp @out@/nix-binary-cache.cgi ./nix-bc.cgi