miniserve: build on darwin (#85187)

authored by zowoq and committed by GitHub 1a3d41d4 7c309ece

+19 -10
+16 -9
pkgs/tools/misc/miniserve/default.nix
··· 1 - { stdenv, rustPlatform, fetchFromGitHub, cmake, pkg-config, zlib, openssl }: 1 + { stdenv 2 + , rustPlatform 3 + , fetchFromGitHub 4 + , pkg-config 5 + , zlib 6 + , openssl 7 + , Security 8 + }: 2 9 3 10 rustPlatform.buildRustPackage rec { 4 11 pname = "miniserve"; 5 12 version = "0.6.0"; 6 13 7 14 src = fetchFromGitHub { 8 - owner = "svenstaro"; 9 - repo = "miniserve"; 10 - rev = "v${version}"; 15 + owner = "svenstaro"; 16 + repo = "miniserve"; 17 + rev = "v${version}"; 11 18 sha256 = "0ybxnxjg0vqm4q60z4zjl3hfls0s2rvy44m6jgyhlj1p6cr3dbyw"; 12 19 }; 13 20 ··· 15 22 16 23 RUSTC_BOOTSTRAP = 1; 17 24 18 - nativeBuildInputs = [ cmake pkg-config zlib ]; 19 - buildInputs = [ openssl ]; 25 + nativeBuildInputs = [ pkg-config zlib ]; 26 + buildInputs = if stdenv.isDarwin then [ Security ] else [ openssl ]; 20 27 21 28 meta = with stdenv.lib; { 22 29 description = "For when you really just want to serve some files over HTTP right now!"; 23 - homepage = "https://github.com/svenstaro/miniserve"; 24 - license = with licenses; [ mit ]; 30 + homepage = "https://github.com/svenstaro/miniserve"; 31 + license = with licenses; [ mit ]; 25 32 maintainers = with maintainers; [ nequissimus ]; 26 - platforms = platforms.linux; 33 + platforms = platforms.unix; 27 34 }; 28 35 }
+3 -1
pkgs/top-level/all-packages.nix
··· 2009 2009 2010 2010 mididings = callPackage ../tools/audio/mididings { }; 2011 2011 2012 - miniserve = callPackage ../tools/misc/miniserve { }; 2012 + miniserve = callPackage ../tools/misc/miniserve { 2013 + inherit (darwin.apple_sdk.frameworks) Security; 2014 + }; 2013 2015 2014 2016 mkspiffs = callPackage ../tools/filesystems/mkspiffs { }; 2015 2017