google-cloud-sdk: deprecate phases

This commit is contained in:
Felix Buehler 2023-01-12 22:40:42 +01:00
parent bbb6af88eb
commit f400af6df1

View File

@ -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;