mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 20:25:32 +03:00
miniserve: use finalAttrs pattern
This commit is contained in:
parent
d0be8ff242
commit
ecb9bc83b2
1 changed files with 6 additions and 10 deletions
|
@ -7,27 +7,23 @@
|
|||
curl,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "miniserve";
|
||||
version = "0.28.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "svenstaro";
|
||||
repo = "miniserve";
|
||||
rev = "v${version}";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-jrQnmIYap5eHVWPqoRsXVroB0VWLKxesi3rB/WylR0U=";
|
||||
};
|
||||
|
||||
useFetchCargoVendor = true;
|
||||
cargoHash = "sha256-SosRbtk5gBcOVropy+HVFFmLLexu29GjchC6zFweiYw=";
|
||||
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
];
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
curl
|
||||
];
|
||||
nativeCheckInputs = [ curl ];
|
||||
|
||||
checkFlags = [
|
||||
"--skip=bind_ipv4_ipv6::case_2"
|
||||
|
@ -52,9 +48,9 @@ rustPlatform.buildRustPackage rec {
|
|||
meta = {
|
||||
description = "CLI tool to serve files and directories over HTTP";
|
||||
homepage = "https://github.com/svenstaro/miniserve";
|
||||
changelog = "https://github.com/svenstaro/miniserve/blob/v${version}/CHANGELOG.md";
|
||||
changelog = "https://github.com/svenstaro/miniserve/blob/v${finalAttrs.version}/CHANGELOG.md";
|
||||
license = with lib.licenses; [ mit ];
|
||||
maintainers = with lib.maintainers; [ figsoda ];
|
||||
mainProgram = "miniserve";
|
||||
};
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue