Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / by-name / dd / ddns-updater / package.nix
blob8ceaeecd14deffe30ac21c6c9b315cfcff9e129a
2   buildGoModule,
3   fetchFromGitHub,
4   lib,
5   nixosTests,
6   nix-update-script,
7 }:
8 buildGoModule rec {
9   pname = "ddns-updater";
10   version = "2.7.0";
12   src = fetchFromGitHub {
13     owner = "qdm12";
14     repo = "ddns-updater";
15     rev = "v${version}";
16     hash = "sha256-U8Vw7dsj/efqvpooT3QQjNp41AuGYJ/Gz/pA8Em3diE=";
17   };
19   vendorHash = "sha256-M9Al3zl2Ltv4yWdyRB3+9zpTr3foliu5WweImHltz3M=";
21   ldflags = [
22     "-s"
23     "-w"
24   ];
26   subPackages = [ "cmd/updater" ];
28   passthru = {
29     tests = {
30       inherit (nixosTests) ddns-updater;
31     };
32     updateScript = nix-update-script { };
33   };
35   postInstall = ''
36     mv $out/bin/updater $out/bin/ddns-updater
37   '';
39   meta = with lib; {
40     description = "Container to update DNS records periodically with WebUI for many DNS providers";
41     homepage = "https://github.com/qdm12/ddns-updater";
42     license = licenses.mit;
43     maintainers = with maintainers; [ delliott ];
44     mainProgram = "ddns-updater";
45   };