f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
40 lines
871 B
Nix
40 lines
871 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
testers,
|
|
nix-update-script,
|
|
phraze,
|
|
rustPlatform,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "phraze";
|
|
version = "0.3.12";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sts10";
|
|
repo = "phraze";
|
|
rev = "v${version}";
|
|
hash = "sha256-lW7oYivIDGYg78MgcLFFNyxciVk+wKU/OBzWYx3KwPI=";
|
|
};
|
|
|
|
doCheck = true;
|
|
|
|
cargoHash = "sha256-kFk04YKDYiABWtild6aaP9H8gt/TuckOWRJE69dAXGU=";
|
|
|
|
passthru = {
|
|
updateScript = nix-update-script { };
|
|
tests = {
|
|
version = testers.testVersion { package = phraze; };
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
description = "Generate random passphrases";
|
|
homepage = "https://github.com/sts10/phraze";
|
|
changelog = "https://github.com/sts10/phraze/releases/tag/v${version}";
|
|
license = lib.licenses.mpl20;
|
|
maintainers = with lib.maintainers; [ x123 ];
|
|
mainProgram = "phraze";
|
|
};
|
|
}
|