miniserve: fix darwin build

This commit is contained in:
zowoq 2020-10-04 09:19:31 +10:00
parent d80602cf51
commit 855ca3b8dd

View file

@ -24,12 +24,16 @@ rustPlatform.buildRustPackage rec {
nativeBuildInputs = [ pkg-config zlib ];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
# Remove after https://github.com/NixOS/nixpkgs/pull/97000 lands into master
preConfigure = stdenv.lib.optionalString stdenv.isDarwin ''
unset SDKROOT
'';
meta = with stdenv.lib; {
description = "For when you really just want to serve some files over HTTP right now!";
homepage = "https://github.com/svenstaro/miniserve";
license = with licenses; [ mit ];
maintainers = with maintainers; [ nequissimus zowoq ];
platforms = platforms.unix;
broken = stdenv.isDarwin; # https://github.com/NixOS/nixpkgs/pull/98181
};
}