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