From fed6d1aaba36bea69e98810c615aed032ecdec32 Mon Sep 17 00:00:00 2001 From: Colin Arnott Date: Wed, 14 Dec 2022 10:42:39 +0000 Subject: [PATCH] acorn: init at 0.4.2 Fixes #204154 --- .../networking/cluster/acorn/default.nix | 33 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/applications/networking/cluster/acorn/default.nix diff --git a/pkgs/applications/networking/cluster/acorn/default.nix b/pkgs/applications/networking/cluster/acorn/default.nix new file mode 100644 index 000000000000..ce0f07f9ec10 --- /dev/null +++ b/pkgs/applications/networking/cluster/acorn/default.nix @@ -0,0 +1,33 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "acorn"; + version = "0.4.2"; + + src = fetchFromGitHub { + owner = "acorn-io"; + repo = pname; + rev = "v${version}"; + hash = "sha256-IzjCYVQ9RhuAmgloue421F43ARviaHW7mTkLhLW/VPM="; + }; + + vendorHash = "sha256-z2ya/CgH9AcxHe73Yt9XWbJqH4OrZWt0bRDsna5hYeo="; + + ldflags = [ + "-s" + "-w" + "-X github.com/acorn-io/acorn/pkg/version.Tag=v${version}" + "-X github.com/acorn-io/acorn/pkg/config.AcornDNSEndpointDefault=https://alpha-dns.acrn.io/v1" + ]; + + # integration tests require network and kubernetes master + doCheck = false; + + meta = with lib; { + homepage = "https://docs.acorn.io"; + changelog = "https://github.com/acorn-io/${pname}/releases/tag/v${version}"; + description = "A simple application deployment framework for Kubernetes"; + license = licenses.asl20; + maintainers = with maintainers; [ urandom ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e35f80aa819c..44642e7871fd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -27411,6 +27411,8 @@ with pkgs; requests requests-toolbelt setuptools sqlalchemy fusepy; }; + acorn = callPackage ../applications/networking/cluster/acorn {}; + adobe-reader = pkgsi686Linux.callPackage ../applications/misc/adobe-reader { }; adl = callPackage ../applications/video/adl { };