4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, sqlite
|
|
, botan2
|
|
, boost
|
|
, curl
|
|
, gettext
|
|
, pkgconfig
|
|
, 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;
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake gettext pkgconfig ];
|
|
|
|
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
|
|
'';
|
|
|
|
meta = with 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;
|
|
broken = true; # fails to build with recent versions of botan. https://github.com/das-labor/neopg/issues/98
|
|
};
|
|
}
|