python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / misc / fcp / default.nix
blob7124e90784573aeab87fc16b96286ac761b3b7eb
1 { expect, fetchFromGitHub, lib, rustPlatform, stdenv }:
3 rustPlatform.buildRustPackage rec {
4   pname = "fcp";
5   version = "0.2.1";
7   src = fetchFromGitHub {
8     owner = "svetlitski";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "0f242n8w88rikg1srimdifadhggrb2r1z0g65id60ahb4bjm8a0x";
12   };
14   cargoSha256 = "0gw7gjfwc4r03rg6z65ml0y37sh4yf716isqs0mb4jqkp7rwfbc9";
16   nativeBuildInputs = [ expect ];
18   # character_device fails with "File name too long" on darwin
19   doCheck = !stdenv.isDarwin;
21   postPatch = ''
22     patchShebangs tests/*.exp
23   '';
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   };