2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoPackage, libtool }:
|
2017-12-15 14:51:19 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "notary";
|
2018-04-29 20:09:25 +00:00
|
|
|
version = "0.6.1";
|
|
|
|
gitcommit = "d6e1431f";
|
2017-12-15 14:51:19 +00:00
|
|
|
|
2018-01-12 19:16:20 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "theupdateframework";
|
|
|
|
repo = "notary";
|
|
|
|
rev = "v${version}";
|
2018-04-29 20:09:25 +00:00
|
|
|
sha256 = "1ak9dk6vjny5069hp3w36dbjawcnaq82l3i2qvf7mn7zfglbsnf9";
|
2017-12-15 14:51:19 +00:00
|
|
|
};
|
|
|
|
|
2018-04-29 20:09:25 +00:00
|
|
|
patches = [ ./no-git-usage.patch ];
|
2018-01-12 19:16:20 +00:00
|
|
|
|
2018-04-29 20:09:25 +00:00
|
|
|
buildInputs = [ libtool ];
|
2017-12-15 14:51:19 +00:00
|
|
|
buildPhase = ''
|
2018-04-29 20:09:25 +00:00
|
|
|
runHook preBuild
|
2018-03-11 14:16:24 +00:00
|
|
|
cd go/src/github.com/theupdateframework/notary
|
2019-09-05 21:10:48 +00:00
|
|
|
SKIPENVCHECK=1 make client GITCOMMIT=${gitcommit}
|
2018-04-29 20:09:25 +00:00
|
|
|
runHook postBuild
|
2017-12-15 14:51:19 +00:00
|
|
|
'';
|
|
|
|
|
2018-04-29 20:09:25 +00:00
|
|
|
goPackagePath = "github.com/theupdateframework/notary";
|
|
|
|
|
2017-12-15 14:51:19 +00:00
|
|
|
installPhase = ''
|
2018-04-29 20:09:25 +00:00
|
|
|
runHook preInstall
|
2020-04-28 01:50:57 +00:00
|
|
|
install -D bin/notary $out/bin/notary
|
2018-04-29 20:09:25 +00:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2019-03-31 16:02:56 +00:00
|
|
|
#doCheck = true; # broken by tzdata: 2018g -> 2019a
|
2018-04-29 20:09:25 +00:00
|
|
|
checkPhase = ''
|
|
|
|
make test PKGS=github.com/theupdateframework/notary/cmd/notary
|
2017-12-15 14:51:19 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-26 04:08:40 +00:00
|
|
|
description = "A project that allows anyone to have trust over arbitrary collections of data";
|
2018-01-12 19:16:20 +00:00
|
|
|
longDescription = ''
|
|
|
|
The Notary project comprises a server and a client for running and
|
|
|
|
interacting with trusted collections. See the service architecture
|
|
|
|
documentation for more information.
|
|
|
|
|
|
|
|
Notary aims to make the internet more secure by making it easy for people
|
|
|
|
to publish and verify content. We often rely on TLS to secure our
|
|
|
|
communications with a web server which is inherently flawed, as any
|
|
|
|
compromise of the server enables malicious content to be substituted for
|
|
|
|
the legitimate content.
|
|
|
|
|
|
|
|
With Notary, publishers can sign their content offline using keys kept
|
|
|
|
highly secure. Once the publisher is ready to make the content available,
|
|
|
|
they can push their signed trusted collection to a Notary Server.
|
|
|
|
|
|
|
|
Consumers, having acquired the publisher's public key through a secure
|
|
|
|
channel, can then communicate with any notary server or (insecure) mirror,
|
|
|
|
relying only on the publisher's key to determine the validity and
|
|
|
|
integrity of the received content.
|
|
|
|
'';
|
|
|
|
license = licenses.asl20;
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/theupdateframework/notary";
|
2019-12-26 14:13:48 +00:00
|
|
|
maintainers = with maintainers; [ vdemeester ];
|
2018-04-29 20:09:25 +00:00
|
|
|
platforms = platforms.unix;
|
2017-12-15 14:51:19 +00:00
|
|
|
};
|
|
|
|
}
|