Merge pull request #242913 from gaelreyrol/mercure-init-0.14.10
mercure: init at 0.15.5
This commit is contained in:
commit
eb09eddf96
1 changed files with 53 additions and 0 deletions
53
pkgs/by-name/me/mercure/package.nix
Normal file
53
pkgs/by-name/me/mercure/package.nix
Normal file
|
@ -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";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue