nixpkgs-suyu/pkgs/tools/security/neopg/default.nix

50 lines
1.2 KiB
Nix
Raw Normal View History

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