lol
1{ expect, fetchFromGitHub, lib, rustPlatform, stdenv }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "fcp";
5 version = "0.2.1";
6
7 src = fetchFromGitHub {
8 owner = "svetlitski";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "0f242n8w88rikg1srimdifadhggrb2r1z0g65id60ahb4bjm8a0x";
12 };
13
14 cargoSha256 = "0gw7gjfwc4r03rg6z65ml0y37sh4yf716isqs0mb4jqkp7rwfbc9";
15
16 nativeBuildInputs = [ expect ];
17
18 # character_device fails with "File name too long" on darwin
19 doCheck = !stdenv.isDarwin;
20
21 postPatch = ''
22 patchShebangs tests/*.exp
23 '';
24
25 meta = with lib; {
26 description = "A significantly faster alternative to the classic Unix cp(1) command";
27 homepage = "https://github.com/svetlitski/fcp";
28 changelog = "https://github.com/svetlitski/fcp/releases/tag/v${version}";
29 license = licenses.bsd3;
30 platforms = platforms.unix;
31 maintainers = with maintainers; [ figsoda ];
32 };
33}