Merge pull request #123565 from stephank/fix-sqlar-darwin
sqlar: fix darwin build
This commit is contained in:
commit
0f2364e7c2
1 changed files with 14 additions and 4 deletions
|
@ -1,4 +1,5 @@
|
||||||
{ lib, stdenv, fetchurl, fuse, zlib }:
|
{ lib, stdenv, fetchurl, fuse, zlib
|
||||||
|
, withFuse ? true }:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "sqlar";
|
pname = "sqlar";
|
||||||
|
@ -9,12 +10,21 @@ stdenv.mkDerivation {
|
||||||
sha256 = "09pikkbp93gqypn3da9zi0dzc47jyypkwc9vnmfzhmw7kpyv8nm9";
|
sha256 = "09pikkbp93gqypn3da9zi0dzc47jyypkwc9vnmfzhmw7kpyv8nm9";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ fuse zlib ];
|
postPatch = ''
|
||||||
|
substituteInPlace Makefile \
|
||||||
|
--replace 'gcc' '${stdenv.cc.targetPrefix}cc'
|
||||||
|
'';
|
||||||
|
|
||||||
buildFlags = [ "sqlar" "sqlarfs" "CFLAGS=-Wno-error" ];
|
buildInputs = [ zlib ]
|
||||||
|
++ lib.optional withFuse fuse;
|
||||||
|
|
||||||
|
buildFlags = [ "CFLAGS=-Wno-error" "sqlar" ]
|
||||||
|
++ lib.optional withFuse "sqlarfs";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -D -t $out/bin sqlar sqlarfs
|
install -D -t $out/bin sqlar
|
||||||
|
'' + lib.optionalString withFuse ''
|
||||||
|
install -D -t $out/bin sqlarfs
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue