about summary refs log tree commit diff
path: root/pkgs/by-name/me
diff options
context:
space:
mode:
authorGaël Reyrol <me@gaelreyrol.dev>2023-11-04 11:33:04 +0100
committerGaël Reyrol <me@gaelreyrol.dev>2023-11-04 11:33:04 +0100
commit13c1993891b44202ed72c508f7627baed4b24a0b (patch)
tree1dd7403dd6dac40c1bcba51b38601f294dfac648 /pkgs/by-name/me
parent45f99bdbca9bd50946b22e4178fb5c6189f1fb9f (diff)
downloadnixlib-13c1993891b44202ed72c508f7627baed4b24a0b.tar
nixlib-13c1993891b44202ed72c508f7627baed4b24a0b.tar.gz
nixlib-13c1993891b44202ed72c508f7627baed4b24a0b.tar.bz2
nixlib-13c1993891b44202ed72c508f7627baed4b24a0b.tar.lz
nixlib-13c1993891b44202ed72c508f7627baed4b24a0b.tar.xz
nixlib-13c1993891b44202ed72c508f7627baed4b24a0b.tar.zst
nixlib-13c1993891b44202ed72c508f7627baed4b24a0b.zip
mercure: init at 0.15.5
Diffstat (limited to 'pkgs/by-name/me')
-rw-r--r--pkgs/by-name/me/mercure/package.nix53
1 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/by-name/me/mercure/package.nix b/pkgs/by-name/me/mercure/package.nix
new file mode 100644
index 000000000000..e90bd8d10ba4
--- /dev/null
+++ b/pkgs/by-name/me/mercure/package.nix
@@ -0,0 +1,53 @@
+{ lib
+, buildGoModule
+, fetchFromGitHub
+, nix-update-script
+, testers
+, mercure
+}:
+
+buildGoModule rec {
+  pname = "mercure";
+  version = "0.15.5";
+
+  src = fetchFromGitHub {
+    owner = "dunglas";
+    repo = "mercure";
+    rev = "v${version}";
+    hash = "sha256-DyKNKhxjnOfxYcp3w1nB6kxs9c4ZaHL0AN0Eb5vc6mA=";
+  };
+
+  sourceRoot = "source/caddy";
+
+  vendorHash = "sha256-2SZv6iwEZjq/50WwwupfHjbg0vNpff/Cn21nPqeHJMw=";
+
+  subPackages = [ "mercure" ];
+  excludedPackages = [ "../cmd/mercure" ];
+
+  ldflags = [
+    "-s"
+    "-w"
+    "-X 'github.com/caddyserver/caddy/v2.CustomVersion=Mercure.rocks v${version} Caddy'"
+  ];
+
+  doCheck = false;
+
+  passthru = {
+    updateScript = nix-update-script { };
+    tests.version = testers.testVersion {
+      version = "v${version}";
+      package = mercure;
+      command = "mercure version";
+    };
+  };
+
+  meta = with lib; {
+    description = "An open, easy, fast, reliable and battery-efficient solution for real-time communications";
+    homepage = "https://github.com/dunglas/mercure";
+    changelog = "https://github.com/dunglas/mercure/releases/tag/v${version}";
+    license = licenses.agpl3Only;
+    maintainers = with maintainers; [ gaelreyrol ];
+    platforms = platforms.unix;
+    mainProgram = "mercure";
+  };
+}