boxfs: add darwin build
This commit is contained in:
parent
467898029e
commit
651f214fb1
|
@ -37,7 +37,10 @@ in stdenv.mkDerivation {
|
||||||
buildInputs = [ curl fuse libxml2 ];
|
buildInputs = [ curl fuse libxml2 ];
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
|
||||||
buildFlags = [ "static" ];
|
buildFlags = [
|
||||||
|
"static"
|
||||||
|
"CC=${stdenv.cc.targetPrefix}cc"
|
||||||
|
] ++ lib.optional stdenv.isDarwin "CFLAGS=-D_BSD_SOURCE";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
|
@ -55,6 +58,6 @@ in stdenv.mkDerivation {
|
||||||
'';
|
'';
|
||||||
homepage = "https://github.com/drotiro/boxfs2";
|
homepage = "https://github.com/drotiro/boxfs2";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue