From 6805bd7bb0f15118dd44ad7ece298153ef2392bd Mon Sep 17 00:00:00 2001 From: Laurent Arnoud Date: Wed, 27 Mar 2024 10:39:40 +0100 Subject: [PATCH] upsun: init at 5.0.12 --- pkgs/by-name/up/upsun/package.nix | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pkgs/by-name/up/upsun/package.nix diff --git a/pkgs/by-name/up/upsun/package.nix b/pkgs/by-name/up/upsun/package.nix new file mode 100644 index 000000000000..5e2d53d78667 --- /dev/null +++ b/pkgs/by-name/up/upsun/package.nix @@ -0,0 +1,34 @@ +{ stdenvNoCC, lib, fetchurl }: + +stdenvNoCC.mkDerivation rec { + pname = "upsun"; + version = "5.0.12"; + + src = { + x86_64-linux = fetchurl { + url = "https://github.com/platformsh/cli/releases/download/${version}/upsun_${version}_linux_amd64.tar.gz"; + hash = "sha256-svEPMVY7r7pAoXwFIMYqCEduqR3Nkocaguf2nIGt+G8="; + }; + aarch64-linux = fetchurl { + url = "https://github.com/platformsh/cli/releases/download/${version}/upsun_${version}_linux_arm64.tar.gz"; + hash = "sha256-ZraS/PqSPL/kcj5o6hzDdL70IV2IWXOma6OHCiXIDQc="; + }; + }.${stdenvNoCC.system} or (throw "${pname}-${version}: ${stdenvNoCC.system} is unsupported."); + + dontConfigure = true; + dontBuild = true; + + sourceRoot = "."; + installPhase = '' + install -Dm755 upsun $out/bin/upsun + ''; + + meta = { + homepage = "https://github.com/platformsh/cli"; + description = "The unified tool for managing your Upsun services from the command line"; + maintainers = with lib.maintainers; [ spk ]; + license = lib.licenses.mit; + platforms = [ "x86_64-linux" "aarch64-linux" ]; + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; + }; +}