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

25 lines
688 B
Nix

{ lib, stdenv, fetchFromGitHub, rustPlatform, Security }:
rustPlatform.buildRustPackage rec {
pname = "xsv";
version = "0.13.0";
src = fetchFromGitHub {
owner = "BurntSushi";
repo = "xsv";
rev = version;
sha256 = "17v1nw36mrarrd5yv4xd3mpc1d7lvhd5786mqkzyyraf78pjg045";
};
cargoSha256 = "1bh60zgflaa5n914irkr4bpq3m4h2ngcj6bp5xx1qj112dwgvmyb";
buildInputs = lib.optional stdenv.isDarwin Security;
meta = with lib; {
description = "A fast CSV toolkit written in Rust";
mainProgram = "xsv";
homepage = "https://github.com/BurntSushi/xsv";
license = with licenses; [ unlicense /* or */ mit ];
maintainers = [ maintainers.jgertm ];
};
}