2018-01-04 16:04:22 +00:00
|
|
|
{ stdenv
|
2018-10-08 13:04:21 +01:00
|
|
|
, fetchFromGitHub
|
2018-01-04 16:04:22 +00:00
|
|
|
, cmake
|
|
|
|
, sqlite
|
|
|
|
, botan2
|
|
|
|
, boost164
|
|
|
|
, curl
|
|
|
|
, gettext
|
|
|
|
, pkgconfig
|
|
|
|
, libusb
|
|
|
|
, gnutls }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-05-28 13:59:57 +01:00
|
|
|
name = "neopg-${version}";
|
2018-12-23 21:39:08 +00:00
|
|
|
version = "0.0.4";
|
2018-01-04 16:04:22 +00:00
|
|
|
|
2018-10-08 13:04:21 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "das-labor";
|
|
|
|
repo = "neopg";
|
2018-05-28 13:59:57 +01:00
|
|
|
rev = "v${version}";
|
2018-12-23 21:39:08 +00:00
|
|
|
sha256 = "0hhkl326ff6f76k8pwggpzmivbm13fz497nlyy6ybn5bmi9xfblm";
|
2018-10-08 13:04:21 +01:00
|
|
|
fetchSubmodules = true;
|
2018-01-04 16:04:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
2018-05-28 13:59:57 +01:00
|
|
|
buildInputs = [ cmake sqlite botan2 boost164 curl gettext libusb gnutls ];
|
2018-01-04 16:04:22 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|