From c640bed02ed2d9825e73e1e26e4e041373735a84 Mon Sep 17 00:00:00 2001 From: CherryKitten Date: Tue, 18 Jun 2024 10:56:38 +0200 Subject: [PATCH] rusty-diceware: init at 0.5.8 --- pkgs/by-name/ru/rusty-diceware/package.nix | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pkgs/by-name/ru/rusty-diceware/package.nix diff --git a/pkgs/by-name/ru/rusty-diceware/package.nix b/pkgs/by-name/ru/rusty-diceware/package.nix new file mode 100644 index 000000000000..acc271e0f7a1 --- /dev/null +++ b/pkgs/by-name/ru/rusty-diceware/package.nix @@ -0,0 +1,29 @@ +{ 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"; + }; +}