From b40e313686d1c80559e3518d902dc9374c9c3068 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Mon, 1 Apr 2024 11:55:11 +0200 Subject: [PATCH] daytona-bin: init at 0.9.0 --- pkgs/by-name/da/daytona-bin/package.nix | 55 +++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 pkgs/by-name/da/daytona-bin/package.nix diff --git a/pkgs/by-name/da/daytona-bin/package.nix b/pkgs/by-name/da/daytona-bin/package.nix new file mode 100644 index 000000000000..1c1d2b5189f2 --- /dev/null +++ b/pkgs/by-name/da/daytona-bin/package.nix @@ -0,0 +1,55 @@ +{ stdenvNoCC +, lib +, fetchurl +, makeWrapper +}: + +stdenvNoCC.mkDerivation (finalAttrs: { + pname = "daytona-bin"; + version = "0.9.0"; + + src = + let + urls = { + "x86_64-linux" = { + url = "https://download.daytona.io/daytona/v${finalAttrs.version}/daytona-linux-amd64"; + hash = "sha256-vJVGFmaGP9oCCzdvhuAPsoTaxzGvdDKDupMYuepRUCA="; + }; + "x86_64-darwin" = { + url = "https://download.daytona.io/daytona/v${finalAttrs.version}/daytona-darwin-amd64"; + hash = "sha256-R63AQVt5DudzJub+TYcJiHkBGVeOhjvgJZgnqvJb8t0="; + }; + "aarch64-linux" = { + url = "https://download.daytona.io/daytona/v${finalAttrs.version}/daytona-linux-arm64"; + hash = "sha256-98OEhJ1gakPTVO73M9WW0QuSDgR42gNjoioEkkNbf6w="; + }; + "aarch64-darwin" = { + url = "https://download.daytona.io/daytona/v${finalAttrs.version}/daytona-darwin-arm64"; + hash = "sha256-YmLyioFueEfi/2Q+JwINDhkwo617/KUZrimz9CibdA8="; + }; + }; + in + fetchurl urls."${stdenvNoCC.hostPlatform.system}"; + + dontUnpack = true; + + nativeBuildInputs = [ + makeWrapper + ]; + + installPhase = '' + runHook preInstall + install -Dm755 $src $out/bin/daytona + runHook postInstall + ''; + + meta = { + changelog = "https://github.com/daytonaio/daytona/releases/tag/v${finalAttrs.version}"; + description = "The Open Source Dev Environment Manager"; + homepage = "https://github.com/daytonaio/daytona"; + license = lib.licenses.asl20; + mainProgram = "daytona"; + maintainers = with lib.maintainers; [ ]; + sourceProvenance = with lib.sourceTypes; [ binaryNativeCode ]; + }; +})