summary refs log tree commit diff
path: root/pkgs/tools/compression/ouch/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/compression/ouch/default.nix')
-rw-r--r--pkgs/tools/compression/ouch/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/compression/ouch/default.nix b/pkgs/tools/compression/ouch/default.nix
new file mode 100644
index 00000000000..c46e83ab91b
--- /dev/null
+++ b/pkgs/tools/compression/ouch/default.nix
@@ -0,0 +1,28 @@
+{ lib, rustPlatform, fetchFromGitHub }:
+
+rustPlatform.buildRustPackage rec {
+  pname = "ouch";
+  version = "0.1.5";
+
+  src = fetchFromGitHub {
+    owner = "vrmiguel";
+    repo = pname;
+    rev = version;
+    sha256 = "00ah8hgrppa61jhwb74zl5b509q0yp2pp27w9frm814iqx70qn38";
+  };
+
+  cargoPatches = [
+    # a patch file to add Cargo.lock in the source code
+    # https://github.com/vrmiguel/ouch/pull/46
+    ./add-Cargo.lock.patch
+  ];
+
+  cargoSha256 = "181aq8r78g4bl1ndlwl54ws5ccrwph0mmk9506djxvfdy3hndxkg";
+
+  meta = with lib; {
+    description = "Taking the pain away from file (de)compression";
+    homepage = "https://github.com/vrmiguel/ouch";
+    license = licenses.mit;
+    maintainers = [ maintainers.psibi ];
+  };
+}