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