-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new(garden): Automation for Kubernetes development and testing
- Loading branch information
Showing
3 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
{ nixpkgs }: | ||
with nixpkgs; | ||
let | ||
inherit (stdenv.hostPlatform) system; | ||
throwSystem = throw "Unsupported system: ${system}"; | ||
|
||
plat = { | ||
x86_64-linux = "linux-amd64"; | ||
aarch64-linux = "linux-arm64"; | ||
|
||
x86_64-darwin = "macos-amd64"; | ||
aarch64-darwin = "macos-arm64"; | ||
}.${system} or throwSystem; | ||
|
||
archive_fmt = "tar.gz"; | ||
|
||
sha256 = { | ||
x86_64-linux = "sha256-SKCSVjuinX3K1k8nImiXKn00CZUimioMcwB7YzmhJ9M="; | ||
aarch64-linux = "sha256-UUa6eI5CpquVsm5wkzzVypkKOIlsmHZvyWOtYotmUkg="; | ||
|
||
x86_64-darwin = "sha256-6PGfbpNjdMEVSse0SfSxgjTbiwFtx2KchY7EBwmlOLo="; | ||
aarch64-darwin = "sha256-5fhtkuQqP+IXNoGhpYuSLpyXVJwLqMGgZ/x42shOoG4="; | ||
}.${system} or throwSystem; | ||
in | ||
let version = "0.13.50"; in | ||
|
||
stdenv.mkDerivation (finalAttrs: { | ||
pname = "gardenio"; | ||
inherit version; | ||
|
||
installPhase = '' | ||
mkdir -p $out/bin | ||
cp garden $out/bin/garden | ||
chmod +x $out/bin/garden | ||
''; | ||
|
||
src = builtins.fetchurl { | ||
url = "https://download.garden.io/core/${version}/garden-${version}-${plat}.tar.gz"; | ||
inherit sha256; | ||
}; | ||
|
||
meta = with lib; { | ||
description = "garden"; | ||
longDescription = '' | ||
Automation for Kubernetes development and testing. | ||
''; | ||
mainProgram = "garden"; | ||
homepage = "https://garden.io/"; | ||
downloadPage = "https://github.com/garden-io/garden/releases"; | ||
license = licenses.mit; | ||
platforms = [ "x86_64-linux" "x86_64-darwin" "aarch64-darwin" "aarch64-linux" ]; | ||
}; | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters