From 4fb51d082bfd75068231f8881219c9e6f23ad246 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 20 Apr 2024 11:35:32 +0200 Subject: [PATCH] pwdsafety: refactor --- pkgs/tools/security/pwdsafety/default.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/security/pwdsafety/default.nix b/pkgs/tools/security/pwdsafety/default.nix index 5c4394841731..c85a9a00ce4e 100644 --- a/pkgs/tools/security/pwdsafety/default.nix +++ b/pkgs/tools/security/pwdsafety/default.nix @@ -9,18 +9,24 @@ buildGoModule rec { src = fetchFromGitHub { owner = "edoardottt"; - repo = pname; - rev = "v${version}"; + repo = "pwdsafety"; + rev = "refs/tags/v${version}"; hash = "sha256-cKxTcfNjvwcDEw0Z1b50A4u0DUYXlGMMfGWJLPaSkcw="; }; vendorHash = "sha256-RoRq9JZ8lOMtAluz8TB2RRuDEWFOBtWVhz21aTkXXy4="; + ldflags = [ + "-w" + "-s" + ]; + meta = with lib; { description = "Command line tool checking password safety"; - mainProgram = "cmd"; homepage = "https://github.com/edoardottt/pwdsafety"; + changelog = "https://github.com/edoardottt/pwdsafety/releases/tag/v${version}"; license = with licenses; [ gpl3Plus ]; maintainers = with maintainers; [ fab ]; + mainProgram = "pwdsafety"; }; }