2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, sqlite
|
|
|
|
, botan2
|
|
|
|
, boost
|
|
|
|
, curl
|
|
|
|
, gettext
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, libusb1
|
|
|
|
, gnutls }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "neopg";
|
|
|
|
version = "0.0.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "das-labor";
|
|
|
|
repo = "neopg";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "15xp5w046ix59cfrhh8ka4camr0d8qqw643g184sqrcqwpk7nbrx";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake gettext pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ sqlite botan2 boost curl libusb1 gnutls ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
|
|
|
dontUseCmakeBuildDir = true;
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$(pwd)/3rdparty/googletest/googletest:$(pwd)/neopg
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
2020-12-25 13:55:36 +00:00
|
|
|
broken = true; # fails to build with recent versions of botan. https://github.com/das-labor/neopg/issues/98
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|