commit
69d4bdc557
@ -1,32 +1,42 @@
|
|||||||
{ stdenv, fetchFromGitHub, buildGoPackage, git, libtool }:
|
{ stdenv, fetchFromGitHub, buildGoPackage, libtool }:
|
||||||
|
|
||||||
buildGoPackage rec {
|
buildGoPackage rec {
|
||||||
name = "notary-${version}";
|
name = "notary-${version}";
|
||||||
version = "0.6.0";
|
version = "0.6.1";
|
||||||
gitcommit = "34f53ad";
|
gitcommit = "d6e1431f";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "theupdateframework";
|
owner = "theupdateframework";
|
||||||
repo = "notary";
|
repo = "notary";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0lg7ab2agkk3rnladcvpdzk8cnf3m49qfm4sanh7yjvlvlv1wm4a";
|
sha256 = "1ak9dk6vjny5069hp3w36dbjawcnaq82l3i2qvf7mn7zfglbsnf9";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [ ./no-git-usage.patch ];
|
||||||
|
|
||||||
buildInputs = [ libtool ];
|
buildInputs = [ libtool ];
|
||||||
|
buildPhase = ''
|
||||||
|
runHook preBuild
|
||||||
|
cd go/src/github.com/theupdateframework/notary
|
||||||
|
make client GITCOMMIT=${gitcommit}
|
||||||
|
runHook postBuild
|
||||||
|
'';
|
||||||
|
|
||||||
goPackagePath = "github.com/theupdateframework/notary";
|
goPackagePath = "github.com/theupdateframework/notary";
|
||||||
|
|
||||||
buildPhase = ''
|
installPhase = ''
|
||||||
cd go/src/github.com/theupdateframework/notary
|
runHook preInstall
|
||||||
make GITCOMMIT=${gitcommit} GITUNTRACKEDCHANGES= client
|
install -D bin/notary $bin/bin/notary
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
doCheck = true;
|
||||||
install -D bin/notary $bin/bin/notary
|
checkPhase = ''
|
||||||
|
make test PKGS=github.com/theupdateframework/notary/cmd/notary
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = " Notary is a project that allows anyone to have trust over arbitrary collections of data";
|
description = "Notary is a project that allows anyone to have trust over arbitrary collections of data";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
The Notary project comprises a server and a client for running and
|
The Notary project comprises a server and a client for running and
|
||||||
interacting with trusted collections. See the service architecture
|
interacting with trusted collections. See the service architecture
|
||||||
@ -49,7 +59,7 @@ buildGoPackage rec {
|
|||||||
'';
|
'';
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
homepage = https://github.com/theupdateframework/notary;
|
homepage = https://github.com/theupdateframework/notary;
|
||||||
maintainers = with maintainers; [ vdemeester ];
|
maintainers = with maintainers; [ vdemeester ma27 ];
|
||||||
platforms = with platforms; unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
15
pkgs/tools/security/notary/no-git-usage.patch
Normal file
15
pkgs/tools/security/notary/no-git-usage.patch
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
diff --git a/Makefile b/Makefile
|
||||||
|
index ab794165..0cbd047f 100644
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -5,8 +5,8 @@ PREFIX?=$(shell pwd)
|
||||||
|
# Add to compile time flags
|
||||||
|
NOTARY_PKG := github.com/theupdateframework/notary
|
||||||
|
NOTARY_VERSION := $(shell cat NOTARY_VERSION)
|
||||||
|
-GITCOMMIT := $(shell git rev-parse --short HEAD)
|
||||||
|
-GITUNTRACKEDCHANGES := $(shell git status --porcelain --untracked-files=no)
|
||||||
|
+GITCOMMIT ?= $(shell git rev-parse --short HEAD)
|
||||||
|
+GITUNTRACKEDCHANGES :=
|
||||||
|
ifneq ($(GITUNTRACKEDCHANGES),)
|
||||||
|
GITCOMMIT := $(GITCOMMIT)-dirty
|
||||||
|
endif
|
Loading…
x
Reference in New Issue
Block a user