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