btrbk: add mainProgram
[NixPkgs.git] / pkgs / by-name / wh / when-cli / package.nix
bloba15a99edf8e68179777a5261e3c8300e39cc88b8
2   lib,
3   fetchCrate,
4   rustPlatform,
5 }:
6 rustPlatform.buildRustPackage rec {
7   pname = "when-cli";
8   version = "0.4.0";
10   src = fetchCrate {
11     inherit pname version;
12     hash = "sha256-LWssrLl2HKul24N3bJdf2ePqeR4PCROrTiVY5sqzB2M=";
13   };
15   cargoHash = "sha256-9emY0yhAKVzuk1Tlzi0kW8oR9jRqLdg8wbTcJMBrxMw=";
17   meta = {
18     description = "Command line tool for converting between timezones";
19     homepage = "https://github.com/mitsuhiko/when";
20     mainProgram = "when";
21     license = lib.licenses.asl20;
22     maintainers = with lib.maintainers; [ loicreynier ];
23   };