062210bdff
A recent upgrade of cargo-vendor changed its output slightly, which broke all cargoSha256 hashes in nixpkgs. See https://github.com/NixOS/nixpkgs/issues/60668 for more information. Since then, a few hashes have been fixed in master by hand, but there were a lot still to do, so I did all of the ones left over with some scripts I wrote. The one hash I wasn’t able to update was habitat's, because it’s currently broken and the build doesn’t get far enough to produce a hash anyway.
26 lines
780 B
Nix
26 lines
780 B
Nix
{ 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 = "055mbrzg7v8a65awn1051b4b9ngxq25wy31gjq8kc93qsb7k0f2k";
|
|
|
|
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;
|
|
};
|
|
}
|