mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
allow networking by default and remove it from derivations
This commit is contained in:
parent
163acc0efa
commit
131e831cb9
@ -35,13 +35,6 @@ genActions = actionName: let
|
||||
"${actionName}DirectoryList" = self."${actionName}FileReadMetadata";
|
||||
"${actionName}FileWrite" = applyToFiles action "file-write*";
|
||||
"${actionName}FileWriteMetadata" = applyToFiles action "file-write-metadata";
|
||||
"${actionName}Network" = sexp [ actionName "network*" ];
|
||||
"${actionName}NetworkBind" = sexp [ actionName "network-bind" ];
|
||||
"${actionName}NetworkInbound" = sexp [ actionName "network-inbound" ];
|
||||
"${actionName}NetworkOutbound" = sexp [ actionName "network-outbound" ];
|
||||
"${actionName}NetworkLocal" = sexp [ actionName "network*" (sexp [ "local" "ip" ]) ];
|
||||
"${actionName}NetworkInboundLocal" = sexp [ actionName "network-inbound" (sexp [ "local" "ip" ]) ];
|
||||
"${actionName}NetworkOutboundLocal" = sexp [ actionName "network-outbound" (sexp [ "local" "ip" ]) ];
|
||||
};
|
||||
in self;
|
||||
|
||||
|
@ -118,8 +118,6 @@ if (!hasHash) then throw "Specify hash for fetchurl fixed-output derivation: ${s
|
||||
|
||||
outputHashMode = if recursiveHash then "recursive" else "flat";
|
||||
|
||||
__sandboxProfile = stdenv.lib.sandbox.allowNetworkOutbound;
|
||||
|
||||
inherit curlOpts showURLs mirrorsFile impureEnvVars postFetch downloadToTemp;
|
||||
|
||||
# Doing the download on a remote machine just duplicates network
|
||||
|
@ -923,9 +923,4 @@ self: super: {
|
||||
hscurses = overrideCabal super.hscurses (drv: {
|
||||
librarySystemDepends = (drv.librarySystemDepends or []) ++ [ pkgs.ncurses ];
|
||||
});
|
||||
|
||||
streaming-commons = pkgs.stdenv.lib.overrideDerivation super.streaming-commons (drv: {
|
||||
__sandboxProfile = drv.__sandboxProfile +
|
||||
pkgs.stdenv.lib.sandbox.allowNetworkLocal;
|
||||
});
|
||||
}
|
||||
|
@ -67,3 +67,6 @@
|
||||
(allow mach-lookup
|
||||
(global-name "com.apple.system.notification_center")
|
||||
(global-name "com.apple.system.opendirectoryd.libinfo"))
|
||||
|
||||
; allow networking on localhost
|
||||
(allow network* (local ip) (remote unix-socket))
|
||||
|
@ -8266,7 +8266,6 @@ let self = _self // overrides; _self = with self; {
|
||||
url = mirror://cpan/authors/id/E/ET/ETHER/Net-HTTP-6.09.tar.gz;
|
||||
sha256 = "52762b939d84806908ba544581c5708375f7938c3c0e496c128ca3fbc425e58d";
|
||||
};
|
||||
__sandboxProfile = stdenv.lib.sandbox.allowNetworkLocal;
|
||||
propagatedBuildInputs = [ URI ];
|
||||
meta = {
|
||||
description = "Low-level HTTP connection (client)";
|
||||
|
@ -3759,8 +3759,6 @@ let
|
||||
substituteInPlace test-requirements.txt --replace 'nose==1.3' 'nose'
|
||||
'';
|
||||
|
||||
__sandboxProfile = pkgs.lib.sandbox.allowNetwork;
|
||||
|
||||
doCheck = !isPy3k; # lots of transient failures
|
||||
checkPhase = ''
|
||||
# Not worth the trouble
|
||||
@ -6550,8 +6548,6 @@ let
|
||||
sha256 = "02rknqarwy7p50693cqswbibqwgxzrfzdq4yhwqxbdmhbsmh0rk6";
|
||||
};
|
||||
|
||||
__sandboxProfile = pkgs.lib.sandbox.allowNetwork;
|
||||
|
||||
# Only test dependencies
|
||||
buildInputs = with self; [ pkgs.git gevent geventhttpclient mock fastimport ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user