nixpkgs/pkgs/games/rpg-cli/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

27 lines
667 B
Nix

{ rustPlatform, fetchFromGitHub, lib }:
rustPlatform.buildRustPackage rec {
pname = "rpg-cli";
version = "1.0.1";
src = fetchFromGitHub {
owner = "facundoolano";
repo = pname;
rev = version;
sha256 = "sha256-rhG/EK68PWvQYoZdjhk0w7oNmh/QiTaAt4/WgEkgxEA=";
};
cargoSha256 = "sha256-YXQohmDmkClziaLkL2N4cGURZ0tewyt7BuNY4hS+a4w=";
# tests assume the authors macbook, and thus fail
doCheck = false;
meta = with lib; {
description = "Your filesystem as a dungeon";
mainProgram = "rpg-cli";
homepage = "https://github.com/facundoolano/rpg-cli";
license = licenses.mit;
maintainers = with maintainers; [ lom ];
};
}