From 7803a33a629bdd95970c93ce97c37ef31c62053f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Thu, 29 Jul 2021 14:41:27 +0200 Subject: [PATCH] pwgen: cleanup --- pkgs/tools/security/pwgen/default.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/security/pwgen/default.nix b/pkgs/tools/security/pwgen/default.nix index fc410f19843b..6da6c1e1741b 100644 --- a/pkgs/tools/security/pwgen/default.nix +++ b/pkgs/tools/security/pwgen/default.nix @@ -1,17 +1,22 @@ -{lib, stdenv, fetchurl, autoreconfHook}: +{ lib, stdenv, fetchFromGitHub, autoreconfHook }: + stdenv.mkDerivation rec { pname = "pwgen"; version = "2.08"; - src = fetchurl { - url = "https://github.com/tytso/pwgen/archive/v${version}.tar.gz"; - sha256 = "8d6e94f28655e61d6126290e3eafad4d17d7fba0d0d354239522a740a270bb2f"; + src = fetchFromGitHub { + owner = "tytso"; + repo = "pwgen"; + rev = "v${version}"; + sha256 = "8d6e94f58655e61d6126290e3eafad4d17d7fba0d0d354239522a740a270bb2f"; }; nativeBuildInputs = [ autoreconfHook ]; - meta = { + meta = with lib; { description = "Password generator which creates passwords which can be easily memorized by a human"; - platforms = lib.platforms.all; + maintainers = with maintainers; [ ]; + license = with licenses; [ gpl2Only ]; + platforms = platforms.all; }; }