lol
0
fork

Configure Feed

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

at 18.09-beta 77 lines 2.7 kB view raw
1{ stdenv, lib, fetchpatch, 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 name = "libgpg-error-${version}"; 20 version = "1.28"; 21 22 src = fetchurl { 23 url = "mirror://gnupg/libgpg-error/${name}.tar.bz2"; 24 sha256 = "0jfsfnh9bxlxiwxws60yah4ybjw2hshmvqp31pri4m4h8ivrbnry"; 25 }; 26 27 patches = [ 28 # Fix builds on ARM, AArch64 29 (fetchpatch { 30 url = "https://github.com/gpg/libgpg-error/commit/791177de023574223eddf7288eb7c5a0721ac623.patch"; 31 sha256 = "0vqfw0ak1j37wf6sk9y9vmdyk3kxdxkldhs0bv2waa76s11cmdx0"; 32 }) 33 ]; 34 35 postPatch = '' 36 sed '/BUILD_TIMESTAMP=/s/=.*/=1970-01-01T00:01+0000/' -i ./configure 37 '' + lib.optionalString (stdenv.hostPlatform.isAarch32 && stdenv.buildPlatform != stdenv.hostPlatform) '' 38 ln -s lock-obj-pub.arm-unknown-linux-gnueabi.h src/syscfg/lock-obj-pub.linux-gnueabihf.h 39 '' + lib.optionalString stdenv.hostPlatform.isMusl '' 40 ln -s lock-obj-pub.x86_64-pc-linux-musl.h src/syscfg/lock-obj-pub.linux-musl.h 41 ''; 42 43 outputs = [ "out" "dev" "info" ]; 44 outputBin = "dev"; # deps want just the lib, most likely 45 46 # If architecture-dependent MO files aren't available, they're generated 47 # during build, so we need gettext for cross-builds. 48 depsBuildBuild = [ buildPackages.stdenv.cc ]; 49 nativeBuildInputs = [ gettext ]; 50 51 postConfigure = 52 lib.optionalString stdenv.isSunOS 53 # For some reason, /bin/sh on OpenIndiana leads to this at the end of the 54 # `config.status' run: 55 # ./config.status[1401]: shift: (null): bad number 56 # (See <http://hydra.nixos.org/build/2931046/nixlog/1/raw>.) 57 # Thus, re-run it with Bash. 58 "${stdenv.shell} config.status"; 59 60 doCheck = true; # not cross 61 62 meta = with stdenv.lib; { 63 homepage = https://www.gnupg.org/related_software/libgpg-error/index.html; 64 description = "A small library that defines common error values for all GnuPG components"; 65 66 longDescription = '' 67 Libgpg-error is a small library that defines common error values 68 for all GnuPG components. Among these are GPG, GPGSM, GPGME, 69 GPG-Agent, libgcrypt, Libksba, DirMngr, Pinentry, SmartCard 70 Daemon and possibly more in the future. 71 ''; 72 73 license = licenses.lgpl2Plus; 74 platforms = platforms.all; 75 maintainers = [ maintainers.fuuzetsu maintainers.vrthra ]; 76 }; 77} // genPosixLockObjOnlyAttrs)