libgpg-error-gen-posix-lock-obj: passthru outputBin as `bin`

+5 -3
+5 -3
pkgs/by-name/li/libgpg-error/package.nix
··· 23 23 }; 24 24 in 25 25 stdenv.mkDerivation ( 26 - rec { 26 + finalAttrs: 27 + { 27 28 pname = "libgpg-error"; 28 29 version = "1.51"; 29 30 30 31 src = fetchurl { 31 - url = "mirror://gnupg/${pname}/${pname}-${version}.tar.bz2"; 32 + url = "mirror://gnupg/libgpg-error/libgpg-error-${finalAttrs.version}.tar.bz2"; 32 33 hash = "sha256-vg8bLba5Pu1VNpzfefGfcnUMjHw5/CC1d+ckVFQn5rI="; 33 34 }; 34 35 ··· 47 48 "info" 48 49 ]; 49 50 outputBin = "dev"; # deps want just the lib, most likely 51 + passthru.bin = finalAttrs.finalPackage.${finalAttrs.outputBin}; # fixes lib.getExe 50 52 51 53 # If architecture-dependent MO files aren't available, they're generated 52 54 # during build, so we need gettext for cross-builds. ··· 76 78 homepage = "https://www.gnupg.org/software/libgpg-error/index.html"; 77 79 changelog = "https://git.gnupg.org/cgi-bin/gitweb.cgi?p=libgpg-error.git;a=blob;f=NEWS;hb=refs/tags/libgpg-error-${version}"; 78 80 description = "Small library that defines common error values for all GnuPG components"; 79 - mainProgram = "gen-posix-lock-obj"; 81 + mainProgram = if genPosixLockObjOnly then "gen-posix-lock-obj" else "gpg-error"; 80 82 81 83 longDescription = '' 82 84 Libgpg-error is a small library that defines common error values