.github/labeler-no-sync: fix backport labelling (#378567)
[NixPkgs.git] / pkgs / by-name / ba / bash-supergenpass / package.nix
blobbc83a9d6345d786e8e4b3d6915e6214433b91ade
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   unstableGitUpdater,
6   makeWrapper,
7   openssl,
8   coreutils,
9   gnugrep,
12 stdenv.mkDerivation {
13   pname = "bash-supergenpass";
14   version = "0-unstable-2024-03-24";
16   nativeBuildInputs = [ makeWrapper ];
18   src = fetchFromGitHub {
19     owner = "lanzz";
20     repo = "bash-supergenpass";
21     rev = "03416ad4d753d825acd0443a01ac13d385d5e048";
22     sha256 = "Q+xmT72UFCc71K87mAzpyTmEIXjR9SqX0xzmQfi5P9k=";
23   };
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   '';
36   passthru.updateScript = unstableGitUpdater {
37     url = "https://github.com/lanzz/bash-supergenpass.git";
38   };
40   meta = with lib; {
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> ]
46       Default <length> is 10, which is also the original SuperGenPass default length.
48       The <domain> parameter is also optional, but it does not make much sense to omit it.
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 = licenses.mit;
54     maintainers = with maintainers; [ fgaz ];
55     mainProgram = "supergenpass";
56     platforms = platforms.all;
57   };