at 24.05-pre 49 lines 1.5 kB view raw
1{ lib, stdenv 2, fetchFromGitHub 3, unstableGitUpdater 4, makeWrapper 5, openssl 6, coreutils 7, gnugrep }: 8 9stdenv.mkDerivation { 10 pname = "bash-supergenpass"; 11 version = "unstable-2020-02-03"; 12 13 nativeBuildInputs = [ makeWrapper ]; 14 15 src = fetchFromGitHub { 16 owner = "lanzz"; 17 repo = "bash-supergenpass"; 18 rev = "e5d96599b65d65a37148996f00f9d057e522e4d8"; 19 sha256 = "1d8csp94l2p5y5ln53aza5qf246rwmd10043x0x1yrswqrrya40f"; 20 }; 21 22 installPhase = '' 23 install -m755 -D supergenpass.sh "$out/bin/supergenpass" 24 wrapProgram "$out/bin/supergenpass" --prefix PATH : "${lib.makeBinPath [ openssl coreutils gnugrep ]}" 25 ''; 26 27 passthru.updateScript = unstableGitUpdater { 28 url = "https://github.com/lanzz/bash-supergenpass.git"; 29 }; 30 31 meta = with lib; { 32 description = "Bash shell-script implementation of SuperGenPass password generation"; 33 longDescription = '' 34 Bash shell-script implementation of SuperGenPass password generation 35 Usage: ./supergenpass.sh <domain> [ <length> ] 36 37 Default <length> is 10, which is also the original SuperGenPass default length. 38 39 The <domain> parameter is also optional, but it does not make much sense to omit it. 40 41 supergenpass will ask for your master password interactively, and it will not be displayed on your terminal. 42 ''; 43 homepage = "https://github.com/lanzz/bash-supergenpass"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ fgaz ]; 46 mainProgram = "supergenpass"; 47 platforms = platforms.all; 48 }; 49}