1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 14:11:36 +00:00

Merge pull request #30973 from nixos-docs/feat-remove-fetch-adc

fetchadc: removed
This commit is contained in:
Daniel Peebles 2017-10-30 16:53:44 +01:00 committed by GitHub
commit c5dadc7f32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 52 deletions

View file

@ -1,7 +0,0 @@
source $stdenv/setup
loginpage=`curl --insecure -s -L -b cookies.txt "$url"`
[[ $loginpage =~ form[^\>]+action=\"([^\"]+)\" ]] && loginurl=${BASH_REMATCH[1]}
curl --insecure -s --output "$out" -L -b cookies.txt --data "appleId=${adc_user}&accountPassword=${adc_pass}" "https://idmsa.apple.com/IDMSWebAuth/${loginurl}"

View file

@ -1,36 +0,0 @@
{ stdenv, curl, adc_user, adc_pass }:
{ # Path to fetch.
path
# Hash of the downloaded file
, sha256
, # Additional curl options needed for the download to succeed.
curlOpts ? ""
, # Name of the file. If empty, use the basename of `path'.
name ? ""
}:
stdenv.mkDerivation {
url = "https://developer.apple.com/downloads/download.action?path=${path}";
name = if name != "" then name else baseNameOf path;
builder = ./builder.sh;
buildInputs = [ curl ];
meta = {
# Password-guarded files from ADC are certainly unfree, as far as we're concerned!
license = stdenv.lib.licenses.unfree;
};
outputHashAlgo = "sha256";
outputHash = sha256;
outputHashMode = "flat";
inherit curlOpts adc_user adc_pass;
preferLocalBuild = true;
}

View file

@ -126,15 +126,6 @@ with pkgs;
vs = vs90wrapper;
};
fetchadc = callPackage ../build-support/fetchadc {
adc_user = if config ? adc_user
then config.adc_user
else throw "You need an adc_user attribute in your config to download files from Apple Developer Connection";
adc_pass = if config ? adc_pass
then config.adc_pass
else throw "You need an adc_pass attribute in your config to download files from Apple Developer Connection";
};
fetchbower = callPackage ../build-support/fetchbower {
inherit (nodePackages) bower2nix;
};