about summary refs log tree commit diff
path: root/pkgs/games/rpg-cli/default.nix
blob: 1e07c3418fccfd58b114a380a47f0cc4bd572897 (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
{ rustPlatform, fetchFromGitHub, lib }:

rustPlatform.buildRustPackage rec {
  pname = "rpg-cli";
  version = "unstable-2021-05-27";

  src = fetchFromGitHub {
    owner = "facundoolano";
    repo = pname;
    # certain revision because the Cargo.lock was checked-in in that commit
    rev = "4d8a1dac79a1d29d79c0c874475037769dcef5a1";
    sha256 = "sha256-qfj1uij9lYyfyHFUnVi9I0ELOoObjFG2NS9UreC/xio=";
  };

  cargoSha256 = "sha256-I+rSfuiGFdzA5zqPfvMPcERaQfiX92LW2NKjazWh9c4=";

  # tests assume the authors macbook, and thus fail
  doCheck = false;

  meta = with lib; {
    description = "Your filesystem as a dungeon";
    homepage = "https://github.com/facundoolano/rpg-cli";
    license = licenses.mit;
    maintainers = with maintainers; [ legendofmiracles ];
    mainProgram = "rpg-cli";
  };
}