lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 23.05-pre 66 lines 2.2 kB view raw
1{ stdenv, lib, buildPackages, fetchurl, gettext 2, genPosixLockObjOnly ? false 3}: let 4 genPosixLockObjOnlyAttrs = lib.optionalAttrs genPosixLockObjOnly { 5 buildPhase = '' 6 cd src 7 make gen-posix-lock-obj 8 ''; 9 10 installPhase = '' 11 mkdir -p $out/bin 12 install -m755 gen-posix-lock-obj $out/bin 13 ''; 14 15 outputs = [ "out" ]; 16 outputBin = "out"; 17 }; 18in stdenv.mkDerivation (rec { 19 pname = "libgpg-error"; 20 version = "1.45"; 21 22 src = fetchurl { 23 url = "mirror://gnupg/${pname}/${pname}-${version}.tar.bz2"; 24 sha256 = "sha256-Vw+O5PtL/3t0lc/5IMJ1ACrqIUfpodIgwGghMmf4CiY="; 25 }; 26 27 postPatch = '' 28 sed '/BUILD_TIMESTAMP=/s/=.*/=1970-01-01T00:01+0000/' -i ./configure 29 ''; 30 31 outputs = [ "out" "dev" "info" ]; 32 outputBin = "dev"; # deps want just the lib, most likely 33 34 # If architecture-dependent MO files aren't available, they're generated 35 # during build, so we need gettext for cross-builds. 36 depsBuildBuild = [ buildPackages.stdenv.cc ]; 37 nativeBuildInputs = [ gettext ]; 38 39 postConfigure = 40 lib.optionalString stdenv.isSunOS 41 # For some reason, /bin/sh on OpenIndiana leads to this at the end of the 42 # `config.status' run: 43 # ./config.status[1401]: shift: (null): bad number 44 # (See <https://hydra.nixos.org/build/2931046/nixlog/1/raw>.) 45 # Thus, re-run it with Bash. 46 "${stdenv.shell} config.status"; 47 48 doCheck = true; # not cross 49 50 meta = with lib; { 51 homepage = "https://www.gnupg.org/software/libgpg-error/index.html"; 52 changelog = "https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgpg-error.git;a=blob;f=NEWS;hb=refs/tags/libgpg-error-${version}"; 53 description = "A small library that defines common error values for all GnuPG components"; 54 55 longDescription = '' 56 Libgpg-error is a small library that defines common error values 57 for all GnuPG components. Among these are GPG, GPGSM, GPGME, 58 GPG-Agent, libgcrypt, Libksba, DirMngr, Pinentry, SmartCard 59 Daemon and possibly more in the future. 60 ''; 61 62 license = licenses.lgpl2Plus; 63 platforms = platforms.all; 64 maintainers = [ maintainers.vrthra ]; 65 }; 66} // genPosixLockObjOnlyAttrs)