2018-04-29 21:09:25 +01:00
|
|
|
{ stdenv, fetchFromGitHub, buildGoPackage, libtool }:
|
2017-12-15 14:51:19 +00:00
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "notary";
|
2018-04-29 21:09:25 +01: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 21:09:25 +01:00
|
|
|
sha256 = "1ak9dk6vjny5069hp3w36dbjawcnaq82l3i2qvf7mn7zfglbsnf9";
|
2017-12-15 14:51:19 +00:00
|
|
|
};
|
|
|
|
|
2018-04-29 21:09:25 +01:00
|
|
|
patches = [ ./no-git-usage.patch ];
|
2018-01-12 19:16:20 +00:00
|
|
|
|
2018-04-29 21:09:25 +01:00
|
|
|
buildInputs = [ libtool ];
|
2017-12-15 14:51:19 +00:00
|
|
|
buildPhase = ''
|
2018-04-29 21:09:25 +01:00
|
|
|
runHook preBuild
|
2018-03-11 14:16:24 +00:00
|
|
|
cd go/src/github.com/theupdateframework/notary
|
2019-09-05 22:10:48 +01:00
|
|
|
SKIPENVCHECK=1 make client GITCOMMIT=${gitcommit}
|
2018-04-29 21:09:25 +01:00
|
|
|
runHook postBuild
|
2017-12-15 14:51:19 +00:00
|
|
|
'';
|
|
|
|
|
2018-04-29 21:09:25 +01:00
|
|
|
goPackagePath = "github.com/theupdateframework/notary";
|
|
|
|
|
2017-12-15 14:51:19 +00:00
|
|
|
installPhase = ''
|
2018-04-29 21:09:25 +01:00
|
|
|
runHook preInstall
|
2020-04-28 02:50:57 +01:00
|
|
|
install -D bin/notary $out/bin/notary
|
2018-04-29 21:09:25 +01:00
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2019-03-31 17:02:56 +01:00
|
|
|
#doCheck = true; # broken by tzdata: 2018g -> 2019a
|
2018-04-29 21:09:25 +01:00
|
|
|
checkPhase = ''
|
|
|
|
make test PKGS=github.com/theupdateframework/notary/cmd/notary
|
2017-12-15 14:51:19 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2018-04-29 21:09:25 +01:00
|
|
|
description = "Notary is 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 02:11:51 +01:00
|
|
|
homepage = "https://github.com/theupdateframework/notary";
|
2019-12-26 14:13:48 +00:00
|
|
|
maintainers = with maintainers; [ vdemeester ];
|
2018-04-29 21:09:25 +01:00
|
|
|
platforms = platforms.unix;
|
2017-12-15 14:51:19 +00:00
|
|
|
};
|
|
|
|
}
|