forked from mirrors/nixpkgs
google-cloud-sdk: support x86_64-darwin
This commit is contained in:
parent
99fdc8b651
commit
2e648bdacf
|
@ -3,7 +3,7 @@
|
|||
with python27Packages;
|
||||
|
||||
# other systems not supported yet
|
||||
assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux";
|
||||
assert stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux" || stdenv.system == "x86_64-darwin";
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "google-cloud-sdk-${version}";
|
||||
|
@ -15,6 +15,11 @@ stdenv.mkDerivation rec {
|
|||
url = "https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/${name}-linux-x86.tar.gz";
|
||||
sha256 = "1z2v4bg743qkdlmyyy0z2j5s0g10vbc1643gxrhyz491sk6sp616";
|
||||
}
|
||||
else if stdenv.system == "x86_64-darwin" then
|
||||
fetchurl {
|
||||
url = "https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/${name}-darwin-x86_64.tar.gz";
|
||||
sha256 = "efbe2074da5a544c09b6bf87a8ca045dc429ac38dfcd5380561987769491d5ba";
|
||||
}
|
||||
else
|
||||
fetchurl {
|
||||
url = "https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/${name}-linux-x86_64.tar.gz";
|
||||
|
@ -58,6 +63,6 @@ stdenv.mkDerivation rec {
|
|||
license = licenses.free;
|
||||
homepage = "https://cloud.google.com/sdk/";
|
||||
maintainers = with maintainers; [stephenmw zimbatm];
|
||||
platforms = platforms.linux;
|
||||
platforms = with platforms; linux ++ darwin;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue