mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
skopeo: fix build on darwin
This commit is contained in:
parent
28e11a0b6b
commit
64c6ff3dfc
@ -28,7 +28,7 @@ buildGoPackage rec {
|
||||
excludedPackages = "integration";
|
||||
|
||||
nativeBuildInputs = [ pkgconfig (lib.getBin go-md2man) ];
|
||||
buildInputs = [ gpgme libgpgerror lvm2 btrfs-progs ostree libselinux ];
|
||||
buildInputs = [ gpgme ] ++ lib.optionals stdenv.isLinux [ libgpgerror lvm2 btrfs-progs ostree libselinux ];
|
||||
|
||||
buildFlagsArray = ''
|
||||
-ldflags=
|
||||
@ -37,8 +37,8 @@ buildGoPackage rec {
|
||||
'';
|
||||
|
||||
preBuild = ''
|
||||
export CGO_CFLAGS="-I${getDev gpgme}/include -I${getDev libgpgerror}/include -I${getDev lvm2}/include -I${getDev btrfs-progs}/include"
|
||||
export CGO_LDFLAGS="-L${getLib gpgme}/lib -L${getLib libgpgerror}/lib -L${getLib lvm2}/lib"
|
||||
export CGO_CFLAGS="$CFLAGS"
|
||||
export CGO_LDFLAGS="$LDFLAGS"
|
||||
'';
|
||||
|
||||
postBuild = ''
|
||||
|
Loading…
Reference in New Issue
Block a user