Merge pull request #299451 from spk/pkg/upsun

upsun: init at 5.0.12

authored by Aleksana and committed by GitHub 3ca2825e bd7b988c

+34
+34
pkgs/by-name/up/upsun/package.nix
···
··· 1 + { stdenvNoCC, lib, fetchurl }: 2 + 3 + stdenvNoCC.mkDerivation rec { 4 + pname = "upsun"; 5 + version = "5.0.12"; 6 + 7 + src = { 8 + x86_64-linux = fetchurl { 9 + url = "https://github.com/platformsh/cli/releases/download/${version}/upsun_${version}_linux_amd64.tar.gz"; 10 + hash = "sha256-svEPMVY7r7pAoXwFIMYqCEduqR3Nkocaguf2nIGt+G8="; 11 + }; 12 + aarch64-linux = fetchurl { 13 + url = "https://github.com/platformsh/cli/releases/download/${version}/upsun_${version}_linux_arm64.tar.gz"; 14 + hash = "sha256-ZraS/PqSPL/kcj5o6hzDdL70IV2IWXOma6OHCiXIDQc="; 15 + }; 16 + }.${stdenvNoCC.system} or (throw "${pname}-${version}: ${stdenvNoCC.system} is unsupported."); 17 + 18 + dontConfigure = true; 19 + dontBuild = true; 20 + 21 + sourceRoot = "."; 22 + installPhase = '' 23 + install -Dm755 upsun $out/bin/upsun 24 + ''; 25 + 26 + meta = { 27 + homepage = "https://github.com/platformsh/cli"; 28 + description = "The unified tool for managing your Upsun services from the command line"; 29 + maintainers = with lib.maintainers; [ spk ]; 30 + license = lib.licenses.mit; 31 + platforms = [ "x86_64-linux" "aarch64-linux" ]; 32 + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; 33 + }; 34 + }