summary refs log tree commit diff
path: root/pkgs/tools/security
diff options
context:
space:
mode:
authorVincent Demeester <vincent@sbr.pm>2017-12-15 15:51:19 +0100
committerVincent Demeester <vincent@sbr.pm>2018-01-12 15:41:41 +0100
commit843ea6b57ddd6f052c4dc86fcaa2b92236c44654 (patch)
tree04b43c49a19b5affd57d5bfbeb1f063f0e4823d4 /pkgs/tools/security
parentaaa7952b361fd08df5418fb2c850b0b02ae3cdf1 (diff)
downloadnixpkgs-843ea6b57ddd6f052c4dc86fcaa2b92236c44654.tar
nixpkgs-843ea6b57ddd6f052c4dc86fcaa2b92236c44654.tar.gz
nixpkgs-843ea6b57ddd6f052c4dc86fcaa2b92236c44654.tar.bz2
nixpkgs-843ea6b57ddd6f052c4dc86fcaa2b92236c44654.tar.lz
nixpkgs-843ea6b57ddd6f052c4dc86fcaa2b92236c44654.tar.xz
nixpkgs-843ea6b57ddd6f052c4dc86fcaa2b92236c44654.tar.zst
nixpkgs-843ea6b57ddd6f052c4dc86fcaa2b92236c44654.zip
notary: init at 0.5.1
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat (limited to 'pkgs/tools/security')
-rw-r--r--pkgs/tools/security/notary/default.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/tools/security/notary/default.nix b/pkgs/tools/security/notary/default.nix
new file mode 100644
index 00000000000..b0c0ef02461
--- /dev/null
+++ b/pkgs/tools/security/notary/default.nix
@@ -0,0 +1,44 @@
+{ stdenv, fetchgit, buildGoPackage, git, libtool }:
+
+buildGoPackage rec {
+  name = "notary-${version}";
+  version = "0.5.1";
+  gitcommit = "9211198";
+
+  src = fetchgit {
+    url = "https://github.com/theupdateframework/notary";
+    rev = "refs/tags/v${version}";
+    sha256 = "1iybkwvl7021g7kklqybrip8d7hsvvqggpb19yx9kjjisasi2dw6";
+    leaveDotGit = true;
+  };
+
+  buildInputs = [ git libtool ];
+
+  goPackagePath = "github.com/docker/notary";
+  buildPhase = ''
+    cd go/src/github.com/docker/notary
+    make GITCOMMIT=${gitcommit} client
+  '';
+
+  installPhase = ''
+    mkdir -p $bin/bin
+    cp bin/notary $bin/bin/notary
+  '';
+
+  meta = with stdenv.lib; {
+      description = " Notary is a project that allows anyone to have trust over arbitrary collections of data";
+      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;
+      homepage = https://github.com/theupdateframework/notary;
+      maintainers = with maintainers; [ vdemeester ];
+      platforms = with platforms; unix;
+  };
+}