2018-01-04 08:04:22 -08:00
|
|
|
{ stdenv
|
2018-10-08 05:04:21 -07:00
|
|
|
, fetchFromGitHub
|
2018-01-04 08:04:22 -08:00
|
|
|
, cmake
|
|
|
|
, sqlite
|
|
|
|
, botan2
|
2018-05-16 09:26:03 -07:00
|
|
|
, boost
|
2018-01-04 08:04:22 -08:00
|
|
|
, curl
|
|
|
|
, gettext
|
|
|
|
, pkgconfig
|
2020-04-04 02:05:00 -07:00
|
|
|
, libusb1
|
2018-01-04 08:04:22 -08:00
|
|
|
, gnutls }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "neopg";
|
2018-05-16 09:26:03 -07:00
|
|
|
version = "0.0.6";
|
2018-01-04 08:04:22 -08:00
|
|
|
|
2018-10-08 05:04:21 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "das-labor";
|
|
|
|
repo = "neopg";
|
2018-05-28 05:59:57 -07:00
|
|
|
rev = "v${version}";
|
2018-05-16 09:26:03 -07:00
|
|
|
sha256 = "15xp5w046ix59cfrhh8ka4camr0d8qqw643g184sqrcqwpk7nbrx";
|
2018-10-08 05:04:21 -07:00
|
|
|
fetchSubmodules = true;
|
2018-01-04 08:04:22 -08:00
|
|
|
};
|
|
|
|
|
2020-04-04 02:05:00 -07:00
|
|
|
nativeBuildInputs = [ cmake gettext pkgconfig ];
|
2018-01-04 08:04:22 -08:00
|
|
|
|
2020-04-04 02:05:00 -07:00
|
|
|
buildInputs = [ sqlite botan2 boost curl libusb1 gnutls ];
|
2018-01-04 08:04:22 -08:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
checkTarget = "test";
|
2018-05-16 09:26:03 -07:00
|
|
|
dontUseCmakeBuildDir = true;
|
2018-01-04 08:04:22 -08:00
|
|
|
|
2018-05-16 09:26:03 -07:00
|
|
|
preCheck = ''
|
2020-01-01 16:29:34 -08:00
|
|
|
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH''${LD_LIBRARY_PATH:+:}$(pwd)/3rdparty/googletest/googletest:$(pwd)/neopg
|
2018-01-04 08:04:22 -08:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://neopg.io/";
|
2018-01-04 08:04:22 -08:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|