summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorFrancesco Gazzetta <fgaz@users.noreply.github.com>2017-09-26 12:01:11 +0200
committerJörg Thalheim <Mic92@users.noreply.github.com>2017-09-26 11:01:11 +0100
commit1d163835c8c681f3fc56fc488c67edbbf8f63fe4 (patch)
tree9ed0bd9792064dc097161131804f7ddb5f4fdb10 /pkgs
parent472bb9681d50f263ac092e634070ddd6fcb3f03f (diff)
downloadnixpkgs-1d163835c8c681f3fc56fc488c67edbbf8f63fe4.tar
nixpkgs-1d163835c8c681f3fc56fc488c67edbbf8f63fe4.tar.gz
nixpkgs-1d163835c8c681f3fc56fc488c67edbbf8f63fe4.tar.bz2
nixpkgs-1d163835c8c681f3fc56fc488c67edbbf8f63fe4.tar.lz
nixpkgs-1d163835c8c681f3fc56fc488c67edbbf8f63fe4.tar.xz
nixpkgs-1d163835c8c681f3fc56fc488c67edbbf8f63fe4.tar.zst
nixpkgs-1d163835c8c681f3fc56fc488c67edbbf8f63fe4.zip
bash-supergenpass: init at 2012-11-02 (#29797)
* Add fgaz to mantainers

* bash-supergenpass: init at 2012-11-02
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/tools/security/bash-supergenpass/default.nix39
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/tools/security/bash-supergenpass/default.nix b/pkgs/tools/security/bash-supergenpass/default.nix
new file mode 100644
index 00000000000..f85d847f5f9
--- /dev/null
+++ b/pkgs/tools/security/bash-supergenpass/default.nix
@@ -0,0 +1,39 @@
+{ stdenv, fetchFromGitHub, makeWrapper, openssl, coreutils, gnugrep }:
+
+stdenv.mkDerivation rec {
+  name = "bash-supergenpass-unstable-${version}";
+  version = "2012-11-02";
+
+  nativeBuildInputs = [ makeWrapper ];
+
+  src = fetchFromGitHub {
+    owner = "lanzz";
+    repo = "bash-supergenpass";
+    rev = "c84eaa22fb59ab6c390e7f2de7984513347e3a9a";
+    sha256 = "0d3l55kdrf6arb98vwwz9ww55ing5w323fg7546v56hlq3hs5qc9";
+  };
+
+  installPhase = ''
+    install -m755 -D supergenpass.sh "$out/bin/supergenpass"
+    wrapProgram "$out/bin/supergenpass" --prefix PATH : "${stdenv.lib.makeBinPath [ openssl coreutils gnugrep ]}"
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Bash shell-script implementation of SuperGenPass password generation";
+    longDescription = ''
+      Bash shell-script implementation of SuperGenPass password generation
+      Usage: ./supergenpass.sh <domain> [ <length> ]
+
+      Default <length> is 10, which is also the original SuperGenPass default length.
+
+      The <domain> parameter is also optional, but it does not make much sense to omit it.
+
+      supergenpass will ask for your master password interactively, and it will not be displayed on your terminal.
+    '';
+    license = licenses.mit;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ fgaz ];
+    homepage = https://github.com/lanzz/bash-supergenpass;
+  };
+}
+
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 47f84558e3f..9894612eab9 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -1152,6 +1152,8 @@ with pkgs;
 
   stagit = callPackage ../development/tools/stagit { };
 
+  bash-supergenpass = callPackage ../tools/security/bash-supergenpass { };
+
   syscall_limiter = callPackage ../os-specific/linux/syscall_limiter {};
 
   syslogng = callPackage ../tools/system/syslog-ng { };