mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
libgpgperror: Add derivation for gen-posix-lock-obj to help in cross-compilation
This commit is contained in:
parent
3d8a664729
commit
7d7b7a03fa
@ -1,6 +1,21 @@
|
||||
{ stdenv, buildPackages, fetchurl, gettext }:
|
||||
{ stdenv, buildPackages, fetchurl, gettext
|
||||
, genPosixLockObjOnly ? false
|
||||
}: let
|
||||
genPosixLockObjOnlyAttrs = stdenv.lib.optionalAttrs genPosixLockObjOnly {
|
||||
buildPhase = ''
|
||||
cd src
|
||||
make gen-posix-lock-obj
|
||||
'';
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
install -m755 gen-posix-lock-obj $out/bin
|
||||
'';
|
||||
|
||||
outputs = [ "out" ];
|
||||
outputBin = "out";
|
||||
};
|
||||
in stdenv.mkDerivation (rec {
|
||||
name = "libgpg-error-${version}";
|
||||
version = "1.27";
|
||||
|
||||
@ -49,4 +64,4 @@ stdenv.mkDerivation rec {
|
||||
platforms = platforms.all;
|
||||
maintainers = [ maintainers.fuuzetsu maintainers.vrthra ];
|
||||
};
|
||||
}
|
||||
} // genPosixLockObjOnlyAttrs)
|
||||
|
@ -9714,6 +9714,11 @@ with pkgs;
|
||||
|
||||
libgpgerror = callPackage ../development/libraries/libgpg-error { };
|
||||
|
||||
# https://github.com/gpg/libgpg-error/blob/70058cd9f944d620764e57c838209afae8a58c78/README#L118-L140
|
||||
libgpgerror-gen-posix-lock-obj = libgpgerror.override {
|
||||
genPosixLockObjOnly = true;
|
||||
};
|
||||
|
||||
libgphoto2 = callPackage ../development/libraries/libgphoto2 { };
|
||||
|
||||
libgpod = callPackage ../development/libraries/libgpod {
|
||||
|
Loading…
Reference in New Issue
Block a user