2020-06-14 00:16:12 +01:00
|
|
|
{ lib, nixosTests, git, buildGoPackage, fetchFromGitHub, libcap }:
|
2020-06-04 21:49:55 +01:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
|
|
|
pname = "ncdns";
|
|
|
|
version = "0.0.10.3";
|
|
|
|
|
|
|
|
goPackagePath = "github.com/namecoin/ncdns";
|
|
|
|
goDeps = ./deps.nix;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "namecoin";
|
|
|
|
repo = "ncdns";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "12q5al48mkjhgyk7z5wyklzzrdbcqhwxl79axa4gh9ld75prghbq";
|
|
|
|
};
|
|
|
|
|
2020-07-28 07:08:40 +01:00
|
|
|
patches = [ ./fix-tpl-path.patch ];
|
2020-06-04 21:49:55 +01:00
|
|
|
|
|
|
|
buildInputs = [ libcap ];
|
|
|
|
|
|
|
|
preBuild = ''
|
|
|
|
go generate github.com/namecoin/x509-signature-splice/...
|
|
|
|
'';
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
2020-06-14 00:16:12 +01:00
|
|
|
|
|
|
|
passthru.tests.ncdns = nixosTests.ncdns;
|
|
|
|
|
2020-06-04 21:49:55 +01:00
|
|
|
}
|