dotfiles/nixos/home-manager/programs/genpass.nix

25 lines
663 B
Nix
Raw Normal View History

2022-12-19 09:09:08 +00:00
{pkgs ? import <nixpkgs> {}}:
2020-05-01 22:13:13 +01:00
with pkgs;
2022-12-19 09:09:08 +00:00
rustPlatform.buildRustPackage rec {
pname = "genpass";
version = "0.4.1";
2020-05-01 22:13:13 +01:00
2022-12-19 09:09:08 +00:00
src = fetchFromGitHub {
owner = "cyplo";
repo = pname;
rev = "v" + version;
sha256 = "1b22m7g55k5ry0vwyd8pakh8rmfkhk37qy5r74cn3n5pv3fcwini";
};
2020-05-01 22:13:13 +01:00
2022-12-19 09:09:08 +00:00
cargoSha256 = "1p6l64s9smhwka8bh3pamqimamxziad859i62nrmxzqc49nq5s7m";
2020-05-01 22:13:13 +01:00
2022-12-19 09:09:08 +00:00
buildInputs = [openssl pkgconfig git];
2020-05-01 22:13:13 +01:00
2022-12-19 09:09:08 +00:00
meta = with stdenv.lib; {
description = "A simple yet robust commandline random password generator.";
homepage = "https://github.com/cyplo/genpass";
license = licenses.agpl3;
platforms = platforms.all;
};
}