about summary refs log tree commit diff
path: root/pkgs/by-name/ru/rusty-diceware/package.nix
blob: acc271e0f7a1ff44b89c5114872eafd6fc005461 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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";
  };
}