diff --git a/pkgs/tools/misc/psw/default.nix b/pkgs/tools/misc/psw/default.nix new file mode 100644 index 000000000000..562810313019 --- /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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 87a9cd51e7fd..7b40e736dac8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6894,6 +6894,8 @@ in openssl = openssl_1_0_2; }; + psw = callPackage ../tools/misc/psw { }; + pws = callPackage ../tools/misc/pws { }; cntlm = callPackage ../tools/networking/cntlm { };