miniserve: build on darwin (#85187)
This commit is contained in:
parent
7c309eceeb
commit
1a3d41d412
@ -1,13 +1,20 @@
|
|||||||
{ stdenv, rustPlatform, fetchFromGitHub, cmake, pkg-config, zlib, openssl }:
|
{ stdenv
|
||||||
|
, rustPlatform
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pkg-config
|
||||||
|
, zlib
|
||||||
|
, openssl
|
||||||
|
, Security
|
||||||
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "miniserve";
|
pname = "miniserve";
|
||||||
version = "0.6.0";
|
version = "0.6.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "svenstaro";
|
owner = "svenstaro";
|
||||||
repo = "miniserve";
|
repo = "miniserve";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0ybxnxjg0vqm4q60z4zjl3hfls0s2rvy44m6jgyhlj1p6cr3dbyw";
|
sha256 = "0ybxnxjg0vqm4q60z4zjl3hfls0s2rvy44m6jgyhlj1p6cr3dbyw";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -15,14 +22,14 @@ rustPlatform.buildRustPackage rec {
|
|||||||
|
|
||||||
RUSTC_BOOTSTRAP = 1;
|
RUSTC_BOOTSTRAP = 1;
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkg-config zlib ];
|
nativeBuildInputs = [ pkg-config zlib ];
|
||||||
buildInputs = [ openssl ];
|
buildInputs = if stdenv.isDarwin then [ Security ] else [ openssl ];
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "For when you really just want to serve some files over HTTP right now!";
|
description = "For when you really just want to serve some files over HTTP right now!";
|
||||||
homepage = "https://github.com/svenstaro/miniserve";
|
homepage = "https://github.com/svenstaro/miniserve";
|
||||||
license = with licenses; [ mit ];
|
license = with licenses; [ mit ];
|
||||||
maintainers = with maintainers; [ nequissimus ];
|
maintainers = with maintainers; [ nequissimus ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -2009,7 +2009,9 @@ in
|
|||||||
|
|
||||||
mididings = callPackage ../tools/audio/mididings { };
|
mididings = callPackage ../tools/audio/mididings { };
|
||||||
|
|
||||||
miniserve = callPackage ../tools/misc/miniserve { };
|
miniserve = callPackage ../tools/misc/miniserve {
|
||||||
|
inherit (darwin.apple_sdk.frameworks) Security;
|
||||||
|
};
|
||||||
|
|
||||||
mkspiffs = callPackage ../tools/filesystems/mkspiffs { };
|
mkspiffs = callPackage ../tools/filesystems/mkspiffs { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user