summary refs log tree commit diff
path: root/pkgs/tools/misc/miniserve/default.nix
blob: ce157f30cd04f76f01a509c69f623a3d1ea1b635 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ stdenv, rustPlatform, fetchFromGitHub, cmake, pkgconfig, zlib }:

rustPlatform.buildRustPackage rec {
  name    = "miniserve-${version}";
  version = "0.2.1";

  src = fetchFromGitHub {
    owner  = "svenstaro";
    repo   = "miniserve";
    rev    = "v${version}";
    sha256 = "1g8ggqs4fyscb1r98qj22f61jgkqnr4vdyps0drrvydl9lafdmpl";
  };

  cargoSha256 = "18wyr0q5pkxds5hrl4g3mqmk46mr0nvs0id94aiw87729ly4vi8c";

  nativeBuildInputs = [ cmake pkgconfig zlib ];

  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 ];
    platforms   = platforms.linux;
  };
}