nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, fetchurl, gettext }:
2
3stdenv.mkDerivation rec {
4 name = "libgpg-error-${version}";
5 version = "1.27";
6
7 src = fetchurl {
8 url = "mirror://gnupg/libgpg-error/${name}.tar.bz2";
9 sha256 = "1li95ni122fzinzlmxbln63nmgij63irxfvi52ws4zfbzv3am4sg";
10 };
11
12 postPatch = "sed '/BUILD_TIMESTAMP=/s/=.*/=1970-01-01T00:01+0000/' -i ./configure";
13
14 outputs = [ "out" "dev" "info" ];
15 outputBin = "dev"; # deps want just the lib, most likely
16
17 # If architecture-dependent MO files aren't available, they're generated
18 # during build, so we need gettext for cross-builds.
19 crossAttrs.buildInputs = [ gettext ];
20
21 postConfigure =
22 stdenv.lib.optionalString stdenv.isSunOS
23 # For some reason, /bin/sh on OpenIndiana leads to this at the end of the
24 # `config.status' run:
25 # ./config.status[1401]: shift: (null): bad number
26 # (See <http://hydra.nixos.org/build/2931046/nixlog/1/raw>.)
27 # Thus, re-run it with Bash.
28 "${stdenv.shell} config.status";
29
30 doCheck = true;
31
32 meta = with stdenv.lib; {
33 homepage = https://www.gnupg.org/related_software/libgpg-error/index.html;
34 description = "A small library that defines common error values for all GnuPG components";
35
36 longDescription = ''
37 Libgpg-error is a small library that defines common error values
38 for all GnuPG components. Among these are GPG, GPGSM, GPGME,
39 GPG-Agent, libgcrypt, Libksba, DirMngr, Pinentry, SmartCard
40 Daemon and possibly more in the future.
41 '';
42
43 license = licenses.lgpl2Plus;
44 platforms = platforms.all;
45 maintainers = [ maintainers.fuuzetsu maintainers.vrthra ];
46 };
47}
48