about summary refs log tree commit diff
path: root/pkgs/by-name/rc/rcp/package.nix
diff options
context:
space:
mode:
authorMateusz Wykurz <wykurz@gmail.com>2023-12-25 07:20:28 +0100
committerMateusz Wykurz <wykurz@gmail.com>2024-01-24 11:40:27 -0700
commit3078b96eb262fc0a26703ad759da0d11f724e3e3 (patch)
tree04b7c7c2cbbfafa9b47860286830c678e3e40119 /pkgs/by-name/rc/rcp/package.nix
parentb45547a0a2b0e8064c445a50aaedc7f3b27e8ff7 (diff)
rcp: init at 0.5.0
Diffstat (limited to 'pkgs/by-name/rc/rcp/package.nix')
-rw-r--r--pkgs/by-name/rc/rcp/package.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/by-name/rc/rcp/package.nix b/pkgs/by-name/rc/rcp/package.nix
new file mode 100644
index 0000000000000..109d81bec9f54
--- /dev/null
+++ b/pkgs/by-name/rc/rcp/package.nix
@@ -0,0 +1,32 @@
+{ lib
+, fetchFromGitHub
+, rustPlatform
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "rcp";
+  version = "0.5.0";
+
+  src = fetchFromGitHub {
+    owner = "wykurz";
+    repo = "rcp";
+    rev = "v${version}";
+    hash = "sha256-5CqQwTJAQhO9mLfMan6JhNY3N2gfwR6wmGtVBYzVxuc=";
+  };
+
+  cargoHash = "sha256-sF7RjuVRNfJa3vw71S+BKIBLeWT6biekAE/56BsZYkw=";
+
+  checkFlags = [
+    # this test also sets setuid permissions on a test file (3oXXX) which doesn't work in a sandbox
+    "--skip=copy::copy_tests::check_default_mode"
+  ];
+
+  meta = with lib; {
+    changelog = "https://github.com/wykurz/rcp/releases/tag/v${version}";
+    description = "Tools to efficiently copy, remove and link large filesets";
+    homepage = "https://github.com/wykurz/rcp";
+    license = with licenses; [ mit ];
+    mainProgram = "rcp";
+    maintainers = with maintainers; [ wykurz ];
+  };
+}