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