diff options
Diffstat (limited to 'nixpkgs/pkgs/tools/security/pwgen/default.nix')
-rw-r--r-- | nixpkgs/pkgs/tools/security/pwgen/default.nix | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/nixpkgs/pkgs/tools/security/pwgen/default.nix b/nixpkgs/pkgs/tools/security/pwgen/default.nix index c84b9472e96f..7870add420b0 100644 --- a/nixpkgs/pkgs/tools/security/pwgen/default.nix +++ b/nixpkgs/pkgs/tools/security/pwgen/default.nix @@ -1,16 +1,29 @@ -{lib, stdenv, fetchurl, autoreconfHook}: -stdenv.mkDerivation { - name = "pwgen-2.08"; +{ lib +, stdenv +, autoreconfHook +, fetchFromGitHub +}: - src = fetchurl { - url = "https://github.com/tytso/pwgen/archive/v2.08.tar.gz"; - sha256 = "8d6e94f28655e61d6126290e3eafad4d17d7fba0d0d354239522a740a270bb2f"; +stdenv.mkDerivation rec { + pname = "pwgen"; + version = "2.08"; + + src = fetchFromGitHub { + owner = "tytso"; + repo = pname; + rev = "v${version}"; + sha256 = "1j6c6m9fcy24jn8mk989x49yk765xb26lpr8yhpiaqk206wlss2z"; }; - nativeBuildInputs = [ autoreconfHook ]; + nativeBuildInputs = [ + autoreconfHook + ]; - meta = { + meta = with lib; { description = "Password generator which creates passwords which can be easily memorized by a human"; - platforms = lib.platforms.all; + homepage = "https://github.com/tytso/pwgen"; + license = licenses.gpl2Only; + maintainers = with maintainers; [ fab ]; + platforms = platforms.all; }; } |