depot/third_party/nixpkgs/pkgs/tools/networking/ddns-go/default.nix

34 lines
671 B
Nix
Raw Normal View History

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "ddns-go";
version = "6.6.2";
src = fetchFromGitHub {
owner = "jeessy2";
repo = pname;
rev = "v${version}";
hash = "sha256-rl0J10HuZ7WBnOTylCW0MrNFEoKoBwUicJWy9vcQIew=";
};
vendorHash = "sha256-dJXXGoTzgbmpDoAYKfkUgsmQILQQ+zbE14+BiaNEHSs=";
ldflags = [
"-X main.version=${version}"
];
# network required
doCheck = false;
meta = with lib;{
homepage = "https://github.com/jeessy2/ddns-go";
description = "Simple and easy to use DDNS";
license = licenses.mit;
maintainers = with maintainers; [ oluceps ];
mainProgram = "ddns-go";
};
}