diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2018-03-23 19:07:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-23 19:07:10 +0000 |
commit | 213ff3766c2b40e98fba3fcd2d85c78af6c02f3b (patch) | |
tree | d0669c1b535c335be5e757653aac93543a81b2bb /pkgs/tools | |
parent | a8eb2c9ef9e6fcd1f8bbc2ca6dcab7b613ef615a (diff) | |
parent | ebe1cc211e9269a98ab09bbde3800fa8438e1684 (diff) |
Merge pull request #37700 from erictapen/neopg-init
neopg: Init at 0.0.4
Diffstat (limited to 'pkgs/tools')
-rw-r--r-- | pkgs/tools/security/neopg/default.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/pkgs/tools/security/neopg/default.nix b/pkgs/tools/security/neopg/default.nix new file mode 100644 index 0000000000000..10efe0e7f21dd --- /dev/null +++ b/pkgs/tools/security/neopg/default.nix @@ -0,0 +1,47 @@ +{ stdenv +, fetchgit +, cmake +, sqlite +, botan2 +, boost164 +, curl +, gettext +, pkgconfig +, libusb +, gnutls }: + +stdenv.mkDerivation rec { + name = "neopg"; + version = "0.0.4"; + + # no fetchFromGitHub, as repo contains submodules + src = fetchgit { + url = "https://github.com/das-labor/neopg.git"; + rev = "refs/tags/v${version}"; + sha256 = "0hhkl326ff6f76k8pwggpzmivbm13fz497nlyy6ybn5bmi9xfblm"; + }; + + nativeBuildInputs = [ pkgconfig ]; + + buildInputs = [ cmake sqlite botan2 boost164 curl gettext libusb gnutls ]; + + doCheck = true; + checkTarget = "test"; + + postInstall = '' + mkdir -p $out/bin + cp src/neopg $out/bin/neopg + ''; + + meta = with stdenv.lib; { + homepage = https://neopg.io/; + description = "Modern replacement for GnuPG 2"; + license = licenses.gpl3; + longDescription = '' + NeoPG starts as an opiniated fork of GnuPG 2 to clean up the code and make it easier to develop. + It is written in C++11. + ''; + maintainers = with maintainers; [ erictapen ]; + platforms = platforms.linux; + }; +} |