1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-04 19:45:54 +00:00
nixpkgs/pkgs/tools/security/genpass/default.nix

29 lines
725 B
Nix
Raw Normal View History

2020-05-01 22:21:28 +01:00
{ stdenv
, fetchgit
2020-05-01 22:21:28 +01:00
, rustPlatform
2020-08-16 14:22:56 +01:00
, CoreFoundation
, libiconv
, Security
2020-05-01 22:21:28 +01:00
}:
rustPlatform.buildRustPackage rec {
pname = "genpass";
version = "0.4.9";
2020-05-01 22:21:28 +01:00
src = fetchgit {
url = "https://git.sr.ht/~cyplo/genpass";
2020-05-01 22:21:28 +01:00
rev = "v${version}";
sha256 = "1dpv2iyd48xd8yw9bmymjjrkhsgmpwvsl5b9zx3lpaaq59ypi9g9";
2020-05-01 22:21:28 +01:00
};
cargoSha256 = "1cwxpc3xkw673wiamr4v7clrzwxl8ma1vdr6bw0hixm37gxdxz7x";
2020-05-01 22:21:28 +01:00
2020-08-16 14:22:56 +01:00
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ CoreFoundation libiconv Security ];
2020-05-01 22:21:28 +01:00
meta = with stdenv.lib; {
description = "A simple yet robust commandline random password generator";
homepage = "https://sr.ht/~cyplo/genpass/";
2020-05-01 22:21:28 +01:00
license = licenses.agpl3;
maintainers = with maintainers; [ cyplo ];
};
}