summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2018-01-12 19:17:57 +0000
committerGitHub <noreply@github.com>2018-01-12 19:17:57 +0000
commita3d84cbd322e5efd2ca560e075c2687d65b8615f (patch)
treeda69ad38af10d64ab698f1a1bebc43d60671b649 /pkgs/tools
parent43e7cf5eb76e25833988432061876dfe78bc23b6 (diff)
parent9e27701d64e74912eb57d83da0eee8fc94249d7b (diff)
downloadnixpkgs-a3d84cbd322e5efd2ca560e075c2687d65b8615f.tar
nixpkgs-a3d84cbd322e5efd2ca560e075c2687d65b8615f.tar.gz
nixpkgs-a3d84cbd322e5efd2ca560e075c2687d65b8615f.tar.bz2
nixpkgs-a3d84cbd322e5efd2ca560e075c2687d65b8615f.tar.lz
nixpkgs-a3d84cbd322e5efd2ca560e075c2687d65b8615f.tar.xz
nixpkgs-a3d84cbd322e5efd2ca560e075c2687d65b8615f.tar.zst
nixpkgs-a3d84cbd322e5efd2ca560e075c2687d65b8615f.zip
Merge pull request #32712 from vdemeester/init-notary
notary: init at 0.5.1
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/security/notary/default.nix55
1 files changed, 55 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..36685b1d1e4
--- /dev/null
+++ b/pkgs/tools/security/notary/default.nix
@@ -0,0 +1,55 @@
+{ stdenv, fetchFromGitHub, buildGoPackage, git, libtool }:
+
+buildGoPackage rec {
+  name = "notary-${version}";
+  version = "0.5.1";
+  gitcommit = "9211198";
+
+  src = fetchFromGitHub {
+    owner = "theupdateframework";
+    repo = "notary";
+    rev = "v${version}";
+    sha256 = "0z9nsb1mrl0q5j02jkyzbc6xqsm83qzacsckypsxcrijhw935rs5";
+  };
+
+  buildInputs = [ libtool ];
+
+  goPackagePath = "github.com/docker/notary";
+
+  buildPhase = ''
+    cd go/src/github.com/docker/notary
+    make GITCOMMIT=${gitcommit} GITUNTRACKEDCHANGES= client
+  '';
+
+  installPhase = ''
+    install -D 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;
+  };
+}