nixpkgs/pkgs/tools/text/coloursum/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

26 lines
672 B
Nix

{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
rustPlatform.buildRustPackage rec {
pname = "coloursum";
version = "0.3.0";
src = fetchFromGitHub {
owner = "ticky";
repo = "coloursum";
rev = "v${version}";
hash = "sha256-zA2JhSnlFccSY01WMGsgF4AmrF/3BRUCcSMfoEbEPgA=";
};
cargoHash = "sha256-dhcTpff4h37MHNbLoYUZiolSclSGcFrMJ3kKLCZAVAw=";
buildInputs = lib.optional stdenv.isDarwin Security;
meta = with lib; {
description = "Colourise your checksum output";
mainProgram = "coloursum";
homepage = "https://github.com/ticky/coloursum";
license = licenses.mit;
maintainers = with maintainers; [ fgaz ];
};
}