nixpkgs/pkgs/servers/bird-lg/default.nix
Fabián Heredia Montiel ff323ed355 treewide: vendorSha256 → vendorHash
via: `find pkgs/ -type f -exec sed -i 's/vendorSha256 = "sha256/vendorHash = "sha256/' {};`
2023-09-13 01:03:44 -06:00

51 lines
1.2 KiB
Nix

{ buildGoModule, fetchFromGitHub, lib, symlinkJoin }:
let
generic = { modRoot, vendorHash }:
buildGoModule rec {
pname = "bird-lg-${modRoot}";
version = "1.3.1";
src = fetchFromGitHub {
owner = "xddxdd";
repo = "bird-lg-go";
rev = "v${version}";
hash = "sha256-ROMwgsKroxd9qkKX8ZoOuazBrnZytcTAPT9hR/v6a04=";
};
doDist = false;
ldflags = [
"-s"
"-w"
];
inherit modRoot vendorHash;
meta = with lib; {
description = "Bird Looking Glass";
homepage = "https://github.com/xddxdd/bird-lg-go";
changelog = "https://github.com/xddxdd/bird-lg-go/releases/tag/v${version}";
license = licenses.gpl3Plus;
maintainers = with maintainers; [
tchekda
e1mo
];
};
};
bird-lg-frontend = generic {
modRoot = "frontend";
vendorHash = "sha256-yyH6McVzU0Qiod3yP5pGlF36fJQlf4g52wfDAem6KWs=";
};
bird-lg-proxy = generic {
modRoot = "proxy";
vendorHash = "sha256-JfHvDIVKQ7jdPocuh6AOwSQmP+a0/hXYrt5Ap/pEjug=";
};
in
symlinkJoin {
name = "bird-lg-${bird-lg-frontend.version}";
paths = [ bird-lg-frontend bird-lg-proxy ];
} // {
inherit (bird-lg-frontend) version meta;
}