depot/third_party/nixpkgs/pkgs/tools/misc/miniserve/default.nix
Default email ffc78d3539 Project import generated by Copybara.
GitOrigin-RevId: d9dba88d08a9cdf483c3d45f0d7220cf97a4ce64
2021-01-05 19:05:55 +02:00

32 lines
819 B
Nix

{ stdenv
, rustPlatform
, fetchFromGitHub
, pkg-config
, zlib
, Security
}:
rustPlatform.buildRustPackage rec {
pname = "miniserve";
version = "0.10.4";
src = fetchFromGitHub {
owner = "svenstaro";
repo = "miniserve";
rev = "v${version}";
sha256 = "0hskb72gnp66vkyxsqnxhjcqgvjj7wbd2nm5wxp94abc5l1fiigv";
};
cargoSha256 = "0s1gdngpf6gxz2lyapblxxmc6aydg2i9kmrfvngkbmqh4as1a2vl";
nativeBuildInputs = [ pkg-config zlib ];
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ Security ];
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; [ zowoq ];
platforms = platforms.unix;
};
}