mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
cfspeedtest: 1.3.2 -> 1.3.4
This commit is contained in:
parent
f6db44a8da
commit
f359e34ad2
1 changed files with 22 additions and 10 deletions
|
@ -3,28 +3,40 @@
|
||||||
stdenv,
|
stdenv,
|
||||||
rustPlatform,
|
rustPlatform,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
|
installShellFiles,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage (finalAttrs: {
|
||||||
pname = "cfspeedtest";
|
pname = "cfspeedtest";
|
||||||
version = "1.3.2";
|
version = "1.3.4";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "code-inflation";
|
owner = "code-inflation";
|
||||||
repo = "cfspeedtest";
|
repo = "cfspeedtest";
|
||||||
tag = "v${version}";
|
tag = "v${finalAttrs.version}";
|
||||||
hash = "sha256-Q1K5UcrSckEN+6W9UO2u07R3mZ6+J8E1ZYRZqnXif1s=";
|
hash = "sha256-6ea9qOAFP7+1UIrGASFiAPyem+VDVgzrgD44ELsXRzc=";
|
||||||
};
|
};
|
||||||
|
|
||||||
useFetchCargoVendor = true;
|
useFetchCargoVendor = true;
|
||||||
cargoHash = "sha256-moYovJamW9xX3niO10bG9K3choDMV3wtuUSCn/5g1Yw=";
|
cargoHash = "sha256-uyLd4KQa9zWMCuurpdQv0OnCSguE180dm6FzHR+nC40=";
|
||||||
|
|
||||||
meta = with lib; {
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||||
|
installShellCompletion --cmd cfspeedtest \
|
||||||
|
--bash <($out/bin/cfspeedtest --generate-completion bash) \
|
||||||
|
--fish <($out/bin/cfspeedtest --generate-completion fish) \
|
||||||
|
--zsh <($out/bin/cfspeedtest --generate-completion zsh)
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
description = "Unofficial CLI for speed.cloudflare.com";
|
description = "Unofficial CLI for speed.cloudflare.com";
|
||||||
homepage = "https://github.com/code-inflation/cfspeedtest";
|
homepage = "https://github.com/code-inflation/cfspeedtest";
|
||||||
license = with licenses; [ mit ];
|
license = with lib.licenses; [ mit ];
|
||||||
broken = stdenv.hostPlatform.isDarwin;
|
maintainers = with lib.maintainers; [
|
||||||
maintainers = with maintainers; [ colemickens ];
|
colemickens
|
||||||
|
stepbrobd
|
||||||
|
];
|
||||||
mainProgram = "cfspeedtest";
|
mainProgram = "cfspeedtest";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue