depot/third_party/nixpkgs/pkgs/servers/dns/ncdns/default.nix
Default email ffc78d3539 Project import generated by Copybara.
GitOrigin-RevId: d9dba88d08a9cdf483c3d45f0d7220cf97a4ce64
2021-01-05 19:05:55 +02:00

36 lines
861 B
Nix

{ lib, nixosTests, git, buildGoPackage, fetchFromGitHub, libcap }:
buildGoPackage rec {
pname = "ncdns";
version = "2020-11-22";
goPackagePath = "github.com/namecoin/ncdns";
goDeps = ./deps.nix;
src = fetchFromGitHub {
owner = "namecoin";
repo = "ncdns";
rev = "2fa54cd3b5480dba82170ab8ecb511fbd4977c41";
sha256 = "0mrxbg5lmy3s281ff6nxpp03z4mqwq7h5hkqm9qy8nb280x1sx7h";
};
patches = [ ./fix-tpl-path.patch ];
buildInputs = [ libcap ];
postInstall = ''
mkdir -p "$out/share"
cp -r "$src/_doc" "$out/share/doc"
cp -r "$src/_tpl" "$out/share/tpl"
'';
meta = with lib; {
description = "Namecoin to DNS bridge daemon";
homepage = "https://github.com/namecoin/ncdns";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ rnhmjoj ];
};
passthru.tests.ncdns = nixosTests.ncdns;
}