Files
nixpkgs/pkgs/by-name/fa/fast-cli-zig/package.nix
Ben Siraphob 5506449838 pkgs/by-name: fix typos
Assisted-by: Claude Code (claude-opus-5)
2026-08-05 09:56:33 -07:00

43 lines
1.1 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
zig_0_15,
}:
stdenv.mkDerivation (finalAttrs: {
# fast-cli existed, was removed as noted in aliases.nix on 2025-11-17. Consider to rename this package after 1 to 2 releases of nixos
pname = "fast-cli-zig";
version = "0.3.5";
src = fetchFromGitHub {
owner = "mikkelam";
repo = "fast-cli";
tag = "v${finalAttrs.version}";
hash = "sha256-KKjxKQHiSYMaGCfX1+h6DQ809xHh9Yfv8B4PXvr3CwQ=";
};
zigDeps = zig_0_15.fetchDeps {
inherit (finalAttrs) src pname version;
hash = "sha256-89ig8lO5Yb9qFlJ1yL3NDDfKeZDl/CeM6qFxT40eOf8=";
};
nativeBuildInputs = [ zig_0_15.hook ];
postConfigure = ''
ln -s ${finalAttrs.zigDeps} "$ZIG_GLOBAL_CACHE_DIR/p"
'';
doCheck = true;
# Tests create a local http server to check the latency functionality
__darwinAllowLocalNetworking = true;
meta = {
description = "Command line version of fast.com in ~1.2 MB";
homepage = "https://github.com/mikkelam/fast-cli";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dwt ];
mainProgram = "fast-cli";
inherit (zig_0_15.meta) platforms;
};
})