summary refs log tree commit diff
path: root/pkgs/tools/misc
diff options
context:
space:
mode:
authorWill Dietz <github@wdtz.org>2018-04-19 12:20:16 -0500
committerGitHub <noreply@github.com>2018-04-19 12:20:16 -0500
commit93814ed41ce1eaf73ce8a9fda1eef512990e15be (patch)
treec04b5deade725089a352a43ddc488f41d11573b2 /pkgs/tools/misc
parentbb4a8eb6d3a8f9c273c2eab5ab1ef04b429efa7b (diff)
parent305b75d3383d788098316da0fab0002892922b65 (diff)
downloadnixlib-93814ed41ce1eaf73ce8a9fda1eef512990e15be.tar
nixlib-93814ed41ce1eaf73ce8a9fda1eef512990e15be.tar.gz
nixlib-93814ed41ce1eaf73ce8a9fda1eef512990e15be.tar.bz2
nixlib-93814ed41ce1eaf73ce8a9fda1eef512990e15be.tar.lz
nixlib-93814ed41ce1eaf73ce8a9fda1eef512990e15be.tar.xz
nixlib-93814ed41ce1eaf73ce8a9fda1eef512990e15be.tar.zst
nixlib-93814ed41ce1eaf73ce8a9fda1eef512990e15be.zip
Merge pull request #39150 from dtzWill/feature/rw
rw: init at 1.0
Diffstat (limited to 'pkgs/tools/misc')
-rw-r--r--pkgs/tools/misc/rw/default.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/misc/rw/default.nix b/pkgs/tools/misc/rw/default.nix
new file mode 100644
index 000000000000..345f26852dcb
--- /dev/null
+++ b/pkgs/tools/misc/rw/default.nix
@@ -0,0 +1,28 @@
+{ stdenv, fetchurl }:
+
+stdenv.mkDerivation rec {
+  name = "rw-${version}";
+  version = "1.0";
+
+  src = fetchurl {
+    url = "https://sortix.org/rw/release/rw-portable-${version}.tar.gz";
+    # Use hash provided by upstream
+    sha256 = "50009730e36991dfe579716f91f4f616f5ba05ffb7bf69c03d41bf305ed93b6d";
+  };
+
+  makeFlags = [ "PREFIX=$(out)" ];
+
+  meta = with stdenv.lib; {
+    homepage = https://sortix.org/rw;
+    description = "Block device and byte copying program similar to dd";
+    longDescription = ''
+      rw is a command line program which copies information between files
+      or byte streams. The rw command is designed to be a replacement for
+      dd with standard style command line flags.
+    '';
+    license = licenses.isc;
+    maintainers = with maintainers; [ dtzWill ];
+
+    broken = stdenv.hostPlatform.isDarwin;
+  };
+}