diff options
author | Nick Novitski <nick@expo.io> | 2018-06-12 17:43:09 -0700 |
---|---|---|
committer | Nick Novitski <nick@expo.io> | 2018-07-27 12:29:31 -0700 |
commit | 64c6ff3dfc64ec49114090c5b91d617e6b06af69 (patch) | |
tree | b35b4c0a361a8de020250d80a4da33fbc2f5453b /pkgs/development/tools | |
parent | 28e11a0b6ba740aedcc8be27ff8ef334d187bd37 (diff) | |
download | nixlib-64c6ff3dfc64ec49114090c5b91d617e6b06af69.tar nixlib-64c6ff3dfc64ec49114090c5b91d617e6b06af69.tar.gz nixlib-64c6ff3dfc64ec49114090c5b91d617e6b06af69.tar.bz2 nixlib-64c6ff3dfc64ec49114090c5b91d617e6b06af69.tar.lz nixlib-64c6ff3dfc64ec49114090c5b91d617e6b06af69.tar.xz nixlib-64c6ff3dfc64ec49114090c5b91d617e6b06af69.tar.zst nixlib-64c6ff3dfc64ec49114090c5b91d617e6b06af69.zip |
skopeo: fix build on darwin
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r-- | pkgs/development/tools/skopeo/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/tools/skopeo/default.nix b/pkgs/development/tools/skopeo/default.nix index dc157b672530..48f9822ad869 100644 --- a/pkgs/development/tools/skopeo/default.nix +++ b/pkgs/development/tools/skopeo/default.nix @@ -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 = '' |