nixpkgs/pkgs/by-name/fc/fcp/package.nix

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

54 lines
1.4 KiB
Nix
Raw Normal View History

2024-09-28 02:01:50 +00:00
{
expect,
fetchFromGitHub,
lib,
rustPlatform,
stdenv,
2024-09-28 02:14:31 +00:00
fetchpatch,
2024-09-28 02:01:50 +00:00
}:
2021-07-08 22:20:10 +00:00
rustPlatform.buildRustPackage rec {
pname = "fcp";
2021-07-21 18:32:30 +00:00
version = "0.2.1";
2021-07-08 22:20:10 +00:00
src = fetchFromGitHub {
owner = "svetlitski";
2024-09-28 02:01:50 +00:00
repo = "fcp";
rev = "refs/tags/v${version}";
2021-07-21 18:32:30 +00:00
sha256 = "0f242n8w88rikg1srimdifadhggrb2r1z0g65id60ahb4bjm8a0x";
2021-07-08 22:20:10 +00:00
};
2024-09-28 02:14:31 +00:00
cargoPatches = [
(fetchpatch {
url = "https://github.com/Svetlitski/fcp/commit/1988f88be54a507b804b037cb3887fecf11bb571.patch";
hash = "sha256-fafpy1tviT1rV+jv1Yxg6xEsFZ9qXWQi5LykagDA5xI=";
})
(fetchpatch {
url = "https://github.com/Svetlitski/fcp/commit/89bcfc9aa1055dcf541da7a6477ffd3107023f48.patch";
hash = "sha256-NJ9MMeWf6Ywu+p5uDSWWpAcb01PoMbuSAZ3Qxl9jEaY=";
})
./0001-update-Cargo.lock.patch
];
cargoHash = "sha256-wFXvaARflHsT1xz3muC/BPRmhnXEEIk2pBsu87E7Wo8=";
2021-07-08 22:20:10 +00:00
nativeBuildInputs = [ expect ];
# character_device fails with "File name too long" on darwin
doCheck = !stdenv.hostPlatform.isDarwin;
postPatch = ''
patchShebangs tests/*.exp
'';
2024-09-28 02:01:50 +00:00
meta = {
2021-07-08 22:20:10 +00:00
description = "Significantly faster alternative to the classic Unix cp(1) command";
homepage = "https://github.com/svetlitski/fcp";
changelog = "https://github.com/svetlitski/fcp/releases/tag/v${version}";
2024-09-28 02:01:50 +00:00
license = lib.licenses.bsd3;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ figsoda ];
2023-11-27 01:17:53 +00:00
mainProgram = "fcp";
2021-07-08 22:20:10 +00:00
};
}