nixpkgs/pkgs/by-name/rc/rcp/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
1.1 KiB
Nix
Raw Normal View History

2023-12-25 06:20:28 +00:00
{ lib
2024-05-18 13:00:41 +00:00
, stdenv
2023-12-25 06:20:28 +00:00
, fetchFromGitHub
, rustPlatform
2024-05-18 13:00:41 +00:00
, darwin
2023-12-25 06:20:28 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "rcp";
2024-07-02 18:19:23 +00:00
version = "0.11.0";
2023-12-25 06:20:28 +00:00
src = fetchFromGitHub {
owner = "wykurz";
repo = "rcp";
rev = "v${version}";
2024-07-02 18:19:23 +00:00
hash = "sha256-ymqglANM4vIIBC/lCnnLbYvAqJzdxX+lZGw4IB5O1sE=";
2023-12-25 06:20:28 +00:00
};
2024-05-18 13:00:41 +00:00
buildInputs = lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
IOKit
]);
2024-07-02 18:19:23 +00:00
cargoHash = "sha256-88DSK0E1Wu9RMYJsbsnnieCorJZ50TRF7Fm/uCSOYHU=";
2024-03-24 21:02:47 +00:00
RUSTFLAGS = "--cfg tokio_unstable";
2023-12-25 06:20:28 +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-05-18 13:01:00 +00:00
# = note: Undefined symbols for architecture x86_64: "_utimensat"
broken = stdenv.isDarwin && stdenv.isx86_64;
2023-12-25 06:20:28 +00:00
};
}