about summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2022-12-14 21:54:52 +0100
committerGitHub <noreply@github.com>2022-12-14 21:54:52 +0100
commit911355b448d0966ec00fb7e4366073712c4df1e0 (patch)
tree564bdc8eabbecbce7f74b1fb51c8bcc6b510943b /pkgs/applications
parentd1ecb04a0d128894cc24bb8786e878a36b4a9605 (diff)
parentfed6d1aaba36bea69e98810c615aed032ecdec32 (diff)
Merge pull request #206052 from urandom2/acorn
Fixes https://github.com/NixOS/nixpkgs/issues/204154
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/networking/cluster/acorn/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/applications/networking/cluster/acorn/default.nix b/pkgs/applications/networking/cluster/acorn/default.nix
new file mode 100644
index 0000000000000..ce0f07f9ec103
--- /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 ];
+  };
+}