2024-02-07 01:22:34 +00:00
|
|
|
{ lib
|
2024-06-05 15:53:02 +00:00
|
|
|
, stdenv
|
2024-02-07 01:22:34 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
2024-06-05 15:53:02 +00:00
|
|
|
, darwin
|
2024-02-07 01:22:34 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "rcp";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.10.1";
|
2024-02-07 01:22:34 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wykurz";
|
|
|
|
repo = "rcp";
|
|
|
|
rev = "v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-nNMcZyJAvqxVSoytmfSqsfk1yVzzZ5aIOj72L+jFAAM=";
|
2024-02-07 01:22:34 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
|
|
|
|
IOKit
|
|
|
|
]);
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
cargoHash = "sha256-3+w+pTws8WjrUqIWYGbE2V438mVUUyrjBH9mHI8uRMQ=";
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
RUSTFLAGS = "--cfg tokio_unstable";
|
2024-02-07 01:22:34 +00:00
|
|
|
|
|
|
|
checkFlags = [
|
|
|
|
# this test also sets setuid permissions on a test file (3oXXX) which doesn't work in a sandbox
|
|
|
|
"--skip=copy::copy_tests::check_default_mode"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
changelog = "https://github.com/wykurz/rcp/releases/tag/v${version}";
|
|
|
|
description = "Tools to efficiently copy, remove and link large filesets";
|
|
|
|
homepage = "https://github.com/wykurz/rcp";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
mainProgram = "rcp";
|
|
|
|
maintainers = with maintainers; [ wykurz ];
|
2024-06-05 15:53:02 +00:00
|
|
|
# = note: Undefined symbols for architecture x86_64: "_utimensat"
|
|
|
|
broken = stdenv.isDarwin && stdenv.isx86_64;
|
2024-02-07 01:22:34 +00:00
|
|
|
};
|
|
|
|
}
|