about summary refs log tree commit diff
path: root/pkgs/tools/security/pwdsafety/default.nix
blob: 53bb59aa1ef24ee9f59c5f8b7205457904e89b27 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
  lib,
  buildGoModule,
  fetchFromGitHub,
}:

buildGoModule rec {
  pname = "pwdsafety";
  version = "0.4.0";

  src = fetchFromGitHub {
    owner = "edoardottt";
    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";
    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";
  };
}