about summary refs log tree commit diff
path: root/pkgs/tools/misc/psw
diff options
context:
space:
mode:
authorWulfsta <wulfstawulfsta@gmail.com>2021-01-10 18:00:17 -0500
committerCole Helbling <cole.e.helbling@outlook.com>2021-01-10 22:22:28 -0800
commit5ca3562611081e11a56b26011add124dc639fa06 (patch)
treefd1479a61efcd623ba31c09f993a2057420f1ab2 /pkgs/tools/misc/psw
parenta67cfc0cdc10f218f2b9e0b153d1c31d5e96dded (diff)
psw: init at 0.1.2
Diffstat (limited to 'pkgs/tools/misc/psw')
-rw-r--r--pkgs/tools/misc/psw/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/tools/misc/psw/default.nix b/pkgs/tools/misc/psw/default.nix
new file mode 100644
index 0000000000000..562810313019e
--- /dev/null
+++ b/pkgs/tools/misc/psw/default.nix
@@ -0,0 +1,26 @@
+{ lib
+, fetchFromGitHub
+, rustPlatform
+}:
+
+rustPlatform.buildRustPackage rec {
+  pname = "psw";
+  version = "0.1.2";
+
+  src = fetchFromGitHub {
+    owner = "Wulfsta";
+    repo = pname;
+    rev = version;
+    sha256 = "10raj4899i01f5v13w0wxdnjjicql2wjblkq1zcagrfv3ly3d0fy";
+  };
+
+  cargoSha256 = "1w18rym0xnjk7vhrb2dc4cvhg659zbq5d2153gw2snxcbs7gh7r1";
+
+  meta = with lib; {
+    description = "A command line tool to write random bytes to stdout";
+    homepage = "https://github.com/Wulfsta/psw";
+    license = with licenses; [ asl20 /* or */ mit ];
+    maintainers = with maintainers; [ wulfsta ];
+    platforms = platforms.linux;
+  };
+}