mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
google-cloud-sdk: deprecate phases
This commit is contained in:
parent
bbb6af88eb
commit
f400af6df1
@ -97,7 +97,7 @@ let
|
||||
in
|
||||
mkComponent
|
||||
{
|
||||
name = component.id;
|
||||
pname = component.id;
|
||||
version = component.version.version_string;
|
||||
src =
|
||||
if lib.hasAttrByPath [ "data" "source" ] component
|
||||
@ -120,7 +120,7 @@ let
|
||||
|
||||
# Make a google-cloud-sdk component
|
||||
mkComponent =
|
||||
{ name
|
||||
{ pname
|
||||
, version
|
||||
# Source tarball, if any
|
||||
, src ? ""
|
||||
@ -135,7 +135,7 @@ let
|
||||
# The snapshot corresponding to this component
|
||||
, snapshot
|
||||
}: stdenv.mkDerivation {
|
||||
inherit name version snapshot;
|
||||
inherit pname version snapshot;
|
||||
src =
|
||||
if src != "" then
|
||||
builtins.fetchurl
|
||||
@ -143,7 +143,7 @@ let
|
||||
url = src;
|
||||
inherit sha256;
|
||||
} else "";
|
||||
phases = [ "installPhase" "fixupPhase" ];
|
||||
dontUnpack = true;
|
||||
installPhase = ''
|
||||
mkdir -p $out/google-cloud-sdk/.install
|
||||
|
||||
@ -159,7 +159,7 @@ let
|
||||
fi
|
||||
|
||||
# Write the snapshot file to the `.install` folder
|
||||
cp $snapshotPath $out/google-cloud-sdk/.install/${name}.snapshot.json
|
||||
cp $snapshotPath $out/google-cloud-sdk/.install/${pname}.snapshot.json
|
||||
'';
|
||||
passthru = {
|
||||
dependencies = filterForSystem dependencies;
|
||||
|
Loading…
Reference in New Issue
Block a user