nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 19.03 35 lines 1.1 kB view raw
1{ fetchurl, stdenv, gettext, pth, libgpgerror }: 2 3stdenv.mkDerivation rec { 4 name = "libassuan-2.5.2"; 5 6 src = fetchurl { 7 url = "mirror://gnupg/libassuan/${name}.tar.bz2"; 8 sha256 = "1rw8nw6fx6ppxga6m4cqcp898lnlzf7vn3s5c2lzfxg3fzr1nswq"; 9 }; 10 11 outputs = [ "out" "dev" "info" ]; 12 outputBin = "dev"; # libassuan-config 13 14 buildInputs = [ libgpgerror pth gettext]; 15 16 doCheck = true; 17 18 # Make sure includes are fixed for callers who don't use libassuan-config 19 postInstall = '' 20 sed -i 's,#include <gpg-error.h>,#include "${libgpgerror.dev}/include/gpg-error.h",g' $dev/include/assuan.h 21 ''; 22 23 meta = with stdenv.lib; { 24 description = "IPC library used by GnuPG and related software"; 25 longDescription = '' 26 Libassuan is a small library implementing the so-called Assuan 27 protocol. This protocol is used for IPC between most newer 28 GnuPG components. Both, server and client side functions are 29 provided. 30 ''; 31 homepage = http://gnupg.org; 32 license = licenses.lgpl2Plus; 33 platforms = platforms.all; 34 }; 35}