base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / li / libksba / package.nix
blob5eb07184c651f697d6399745c1a7c3731aceec99
1 { buildPackages, lib, stdenv, fetchurl, gettext, libgpg-error }:
3 stdenv.mkDerivation rec {
4   pname = "libksba";
5   version = "1.6.7";
7   src = fetchurl {
8     url = "mirror://gnupg/libksba/libksba-${version}.tar.bz2";
9     hash = "sha256-z3JRC467TrZpPu92V0nYNnegPHkpGjEQQKW/15uqt2M=";
10   };
12   outputs = [ "out" "dev" "info" ];
14   buildInputs = [ gettext ];
15   propagatedBuildInputs = [ libgpg-error ];
16   depsBuildBuild = [ buildPackages.stdenv.cc ];
18   configureFlags = [ "--with-libgpg-error-prefix=${libgpg-error.dev}" ];
20   postInstall = ''
21     mkdir -p $dev/bin
22     mv $out/bin/*-config $dev/bin/
23     rmdir --ignore-fail-on-non-empty $out/bin
24   '';
26   meta = with lib; {
27     homepage = "https://www.gnupg.org";
28     description = "CMS and X.509 access library";
29     mainProgram = "ksba-config";
30     platforms = platforms.all;
31     maintainers = [ ];
32     license = licenses.lgpl3;
33   };