nixpkgs/pkgs/tools/misc/fcp/default.nix

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

35 lines
941 B
Nix
Raw Normal View History

2021-07-08 22:20:10 +00:00
{ expect, fetchFromGitHub, lib, rustPlatform, stdenv }:
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";
repo = pname;
rev = "v${version}";
2021-07-21 18:32:30 +00:00
sha256 = "0f242n8w88rikg1srimdifadhggrb2r1z0g65id60ahb4bjm8a0x";
2021-07-08 22:20:10 +00:00
};
2021-07-21 18:32:30 +00:00
cargoSha256 = "0gw7gjfwc4r03rg6z65ml0y37sh4yf716isqs0mb4jqkp7rwfbc9";
2021-07-08 22:20:10 +00:00
nativeBuildInputs = [ expect ];
# character_device fails with "File name too long" on darwin
doCheck = !stdenv.isDarwin;
postPatch = ''
patchShebangs tests/*.exp
'';
meta = with lib; {
description = "A 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 ];
2023-11-27 01:17:53 +00:00
mainProgram = "fcp";
2021-07-08 22:20:10 +00:00
};
}