12 rustPlatform.buildRustPackage rec {
16 src = fetchFromGitHub {
17 owner = "DeterminateSystems";
20 hash = "sha256-McfJXbr/oadsfQV7hzB6sEMy9sfXthHcjsbOiQs2+rU=";
23 cargoHash = "sha256-PGXd4spD2gNyQIloVZuhWZ1VQtacXPLMCQiBekZbEp4=";
27 rustPlatform.bindgenHook
30 checkInputs = [ cacert ];
32 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
33 darwin.apple_sdk.frameworks.Security
34 darwin.apple_sdk.frameworks.SystemConfiguration
38 env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
39 NIX_CFLAGS_COMPILE = "-I${lib.getDev libcxx}/include/c++/v1";
42 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
43 installShellCompletion --cmd fh \
44 --bash <($out/bin/fh completion bash) \
45 --fish <($out/bin/fh completion fish) \
46 --zsh <($out/bin/fh completion zsh)
49 __darwinAllowLocalNetworking = true;
52 description = "Official FlakeHub CLI";
53 homepage = "https://github.com/DeterminateSystems/fh";
54 changelog = "https://github.com/DeterminateSystems/fh/releases/tag/${src.rev}";
55 license = licenses.asl20;
56 maintainers = with maintainers; [ figsoda ];