Skip to content

Commit

Permalink
Merge pull request #210431 from Stunkymonkey/google-cloud-sdk-phases
Browse files Browse the repository at this point in the history
google-cloud-sdk: deprecate phases
  • Loading branch information
Stunkymonkey authored Jan 22, 2023
2 parents bee40cf + f400af6 commit b21edaf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions pkgs/tools/admin/google-cloud-sdk/components.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -120,7 +120,7 @@ let

# Make a google-cloud-sdk component
mkComponent =
{ name
{ pname
, version
# Source tarball, if any
, src ? ""
Expand All @@ -135,15 +135,15 @@ let
# The snapshot corresponding to this component
, snapshot
}: stdenv.mkDerivation {
inherit name version snapshot;
inherit pname version snapshot;
src =
if src != "" then
builtins.fetchurl
{
url = src;
inherit sha256;
} else "";
phases = [ "installPhase" "fixupPhase" ];
dontUnpack = true;
installPhase = ''
mkdir -p $out/google-cloud-sdk/.install
Expand All @@ -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;
Expand Down

0 comments on commit b21edaf

Please sign in to comment.