diff options
author | midchildan <git@midchildan.org> | 2021-03-27 16:05:28 +0900 |
---|---|---|
committer | midchildan <git@midchildan.org> | 2021-04-20 00:51:59 +0900 |
commit | 651f214fb1d73bc64d41fe3dc1b106e1275eecd7 (patch) | |
tree | 86f26fbf8d9a13cdf348688f6a2439bffe4a8faf /pkgs/tools/filesystems/boxfs/default.nix | |
parent | 467898029ec2c2ad969c042f13e1219c3451d0fa (diff) |
boxfs: add darwin build
Diffstat (limited to 'pkgs/tools/filesystems/boxfs/default.nix')
-rw-r--r-- | pkgs/tools/filesystems/boxfs/default.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/tools/filesystems/boxfs/default.nix b/pkgs/tools/filesystems/boxfs/default.nix index 5637b9af291ae..ef611afd5d090 100644 --- a/pkgs/tools/filesystems/boxfs/default.nix +++ b/pkgs/tools/filesystems/boxfs/default.nix @@ -37,7 +37,10 @@ in stdenv.mkDerivation { buildInputs = [ curl fuse libxml2 ]; nativeBuildInputs = [ pkg-config ]; - buildFlags = [ "static" ]; + buildFlags = [ + "static" + "CC=${stdenv.cc.targetPrefix}cc" + ] ++ lib.optional stdenv.isDarwin "CFLAGS=-D_BSD_SOURCE"; installPhase = '' mkdir -p $out/bin @@ -55,6 +58,6 @@ in stdenv.mkDerivation { ''; homepage = "https://github.com/drotiro/boxfs2"; license = licenses.gpl3; - platforms = platforms.linux; + platforms = platforms.unix; }; } |