blob: 814d764a7999f9b2190275c374132b6c579db6e7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
{ expect, fetchFromGitHub, lib, rustPlatform, stdenv }:
rustPlatform.buildRustPackage rec {
pname = "fcp";
version = "0.2.1";
src = fetchFromGitHub {
owner = "svetlitski";
repo = pname;
rev = "v${version}";
sha256 = "0f242n8w88rikg1srimdifadhggrb2r1z0g65id60ahb4bjm8a0x";
};
cargoHash = "sha256-iS3H87kTS7Iq0FhHE47zBOozPKC1mG9eHiATxp18hz8=";
nativeBuildInputs = [ expect ];
# character_device fails with "File name too long" on darwin
doCheck = !stdenv.isDarwin;
postPatch = ''
patchShebangs tests/*.exp
'';
meta = with lib; {
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}";
license = licenses.bsd3;
platforms = platforms.unix;
maintainers = with maintainers; [ figsoda ];
mainProgram = "fcp";
};
}
|