depot/third_party/nixpkgs/pkgs/development/libraries/libksba/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

33 lines
886 B
Nix

{ buildPackages, lib, stdenv, fetchurl, gettext, libgpg-error }:
stdenv.mkDerivation rec {
pname = "libksba";
version = "1.6.2";
src = fetchurl {
url = "mirror://gnupg/libksba/libksba-${version}.tar.bz2";
sha256 = "fce01ccac59812bddadffacff017dac2e4762bdb6ebc6ffe06f6ed4f6192c971";
};
outputs = [ "out" "dev" "info" ];
buildInputs = [ gettext ];
propagatedBuildInputs = [ libgpg-error ];
depsBuildBuild = [ buildPackages.stdenv.cc ];
configureFlags = [ "--with-libgpg-error-prefix=${libgpg-error.dev}" ];
postInstall = ''
mkdir -p $dev/bin
mv $out/bin/*-config $dev/bin/
rmdir --ignore-fail-on-non-empty $out/bin
'';
meta = with lib; {
homepage = "https://www.gnupg.org";
description = "CMS and X.509 access library";
platforms = platforms.all;
maintainers = with maintainers; [ ];
license = licenses.lgpl3;
};
}