bat: add meta.mainProgram

Follow up of https://github.com/NixOS/nixpkgs/pull/246386
This commit is contained in:
Pol Dellaiera 2023-08-03 11:48:41 +02:00 committed by zowoq
parent 9eaec2881f
commit bff3b3c9e1

View File

@ -16,7 +16,7 @@ rustPlatform.buildRustPackage rec {
src = fetchFromGitHub {
owner = "sharkdp";
repo = pname;
repo = "bat";
rev = "v${version}";
hash = "sha256-cGHxB3Wp8yEcJBMtSOec6l7iBsMLhUtJ7nh5fijnWZs=";
};
@ -58,6 +58,7 @@ rustPlatform.buildRustPackage rec {
homepage = "https://github.com/sharkdp/bat";
changelog = "https://github.com/sharkdp/bat/raw/v${version}/CHANGELOG.md";
license = with licenses; [ asl20 /* or */ mit ];
mainProgram = "bat";
maintainers = with maintainers; [ dywedir lilyball zowoq SuperSandro2000 ];
};
}