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

22 lines
575 B
Nix

{ lib, fetchFromGitHub, rustPlatform }:
rustPlatform.buildRustPackage rec {
pname = "tuc";
version = "1.2.0";
src = fetchFromGitHub {
owner = "riquito";
repo = pname;
rev = "v${version}";
sha256 = "sha256-+QkkwQfp818bKVo1yUkWKLMqbdzRJ+oHpjxB+UFDRsU=";
};
cargoHash = "sha256-NbqmXptLmqLd6QizRB1bIM53Rdj010Hy3JqSuLQ4H24=";
meta = with lib; {
description = "When cut doesn't cut it";
mainProgram = "tuc";
homepage = "https://github.com/riquito/tuc";
license = licenses.gpl3;
maintainers = with maintainers; [ dit7ya ];
};
}