depot/third_party/nixpkgs/pkgs/by-name/ru/rusty-diceware/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

29 lines
808 B
Nix

{ fetchFromGitLab
, lib
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "rusty-diceware";
version = "0.5.8";
src = fetchFromGitLab {
owner = "yuvallanger";
repo = "rusty-diceware";
rev = "diceware-v${version}";
hash = "sha256-GDWvHHl4EztTaR0jI4XL1I9qE2KSL+q9C8IvLWQF4Ys=";
};
cargoHash = "sha256-5SAKrNgFG3O+hLKvEGhawyRi7wiEPWmxPsLtEX0OkDM=";
doCheck = true;
meta = with lib; {
description = "Commandline diceware, with or without dice, written in Rustlang";
homepage = "https://gitlab.com/yuvallanger/rusty-diceware";
changelog = "https://gitlab.com/yuvallanger/rusty-diceware/-/blob/v${version}/CHANGELOG.md?ref_type=heads";
license = licenses.gpl3;
maintainers = with maintainers; [ cherrykitten ];
mainProgram = "diceware";
};
}