summary refs log tree commit diff
path: root/pkgs/tools/misc/fcp/default.nix
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2021-07-09 12:01:58 +0000
committerGitHub <noreply@github.com>2021-07-09 12:01:58 +0000
commite8bfeeb928913275b660678fa7e47bc776e7118d (patch)
tree987137ee287e4b660eb522eced10b4c6d0a799fd /pkgs/tools/misc/fcp/default.nix
parent5df9305b60d5c0dcd5c57388ae4027a59ae50d23 (diff)
parent30ff0457a4e742d77deb7e5349dac566e3eada17 (diff)
downloadnixpkgs-e8bfeeb928913275b660678fa7e47bc776e7118d.tar
nixpkgs-e8bfeeb928913275b660678fa7e47bc776e7118d.tar.gz
nixpkgs-e8bfeeb928913275b660678fa7e47bc776e7118d.tar.bz2
nixpkgs-e8bfeeb928913275b660678fa7e47bc776e7118d.tar.lz
nixpkgs-e8bfeeb928913275b660678fa7e47bc776e7118d.tar.xz
nixpkgs-e8bfeeb928913275b660678fa7e47bc776e7118d.tar.zst
nixpkgs-e8bfeeb928913275b660678fa7e47bc776e7118d.zip
Merge staging-next into staging
Diffstat (limited to 'pkgs/tools/misc/fcp/default.nix')
-rw-r--r--pkgs/tools/misc/fcp/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/tools/misc/fcp/default.nix b/pkgs/tools/misc/fcp/default.nix
new file mode 100644
index 00000000000..db4330e5b0f
--- /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 ];
+  };
+}