Files
nixpkgs/pkgs/by-name/di/distant/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

87 lines
2.2 KiB
Nix

{
lib,
stdenv,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
zlib,
writableTmpDirAsHomeHook,
versionCheckHook,
nix-update-script,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "distant";
version = "0.20.0";
src = fetchFromGitHub {
owner = "chipsenkbeil";
repo = "distant";
tag = "v${finalAttrs.version}";
hash = "sha256-DcnleJUAeYg3GSLZljC3gO9ihiFz04dzT/ddMnypr48=";
};
# error: linker `aarch64-linux-gnu-gcc` not found
postPatch = ''
rm .cargo/config.toml
'';
cargoHash = "sha256-HEyPfkusgk8JEYAzIS8Zj5EU0MK4wt4amlsJqBEG/Kc=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
zlib
];
env = {
OPENSSL_NO_VENDOR = true;
};
nativeCheckInputs = [
writableTmpDirAsHomeHook
];
checkFlags = [
# Requires network access:
# failed to lookup address information: Temporary failure in name resolution
"--skip=options::common::address::tests::resolve_should_properly_resolve_bind_address"
]
++ lib.optionals stdenv.hostPlatform.isDarwin [
# Timeout on darwin
# Custom { kind: TimedOut, error: "" }
"--skip=cli::api::watch::should_support_json_reporting_changes_using_correct_request_id"
"--skip=cli::api::watch::should_support_json_watching_directory_recursively"
"--skip=cli::api::watch::should_support_json_watching_single_file"
"--skip=cli::client::fs_watch::should_support_watching_a_directory_recursively"
"--skip=cli::client::fs_watch::should_support_watching_a_single_file"
];
__darwinAllowLocalNetworking = true;
nativeInstallCheckInputs = [
versionCheckHook
];
versionCheckProgramArg = "--version";
doInstallCheck = true;
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "Library and tooling that supports remote filesystem and process operations";
homepage = "https://github.com/chipsenkbeil/distant";
changelog = "https://github.com/chipsenkbeil/distant/blob/${finalAttrs.version}/CHANGELOG.md";
# From the README:
# "This project is licensed under either of Apache License, Version 2.0, MIT license at your option."
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ GaetanLepage ];
mainProgram = "distant";
};
})