diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-07-09 13:33:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-09 13:33:38 +0200 |
commit | c160074a231584aa7655f513876912f6df274e4c (patch) | |
tree | 6e560597e9a072f88514771dc09226ae3c2c78ff /pkgs | |
parent | d90db7b8dec5c1da6622fd0f14a061175e40ba37 (diff) | |
parent | 680a52bf76d397aedf4e22513346b6e840ab269c (diff) |
Merge pull request #129692 from figsoda/fcp
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/misc/fcp/default.nix | 33 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/tools/misc/fcp/default.nix b/pkgs/tools/misc/fcp/default.nix new file mode 100644 index 0000000000000..db4330e5b0f1c --- /dev/null +++ b/pkgs/tools/misc/fcp/default.nix @@ -0,0 +1,33 @@ +{ expect, fetchFromGitHub, lib, rustPlatform, stdenv }: + +rustPlatform.buildRustPackage rec { + pname = "fcp"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "svetlitski"; + repo = pname; + rev = "v${version}"; + sha256 = "0ahd79dh48hsi4bhs4zs0a7hr55jzsjix9c61lc42ipdbqgifg2d"; + }; + + cargoSha256 = "1arrw4fz3f3wfjy9nb8vm707vhh4x0vv9wv8z2s07b4qcwwih8k4"; + + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d36692b1c405f..bd829f96b7b0b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24054,6 +24054,8 @@ in fbida = callPackage ../applications/graphics/fbida { }; + fcp = callPackage ../tools/misc/fcp { }; + fdupes = callPackage ../tools/misc/fdupes { }; feh = callPackage ../applications/graphics/feh { }; |