nixpkgs/pkgs/tools/text/choose/default.nix

26 lines
612 B
Nix
Raw Normal View History

{ lib
2020-09-11 22:33:07 +00:00
, fetchFromGitHub
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "choose";
2021-07-28 02:59:25 +00:00
version = "1.3.3";
2020-09-11 22:33:07 +00:00
src = fetchFromGitHub {
owner = "theryangeary";
repo = pname;
rev = "v${version}";
2021-07-28 02:59:25 +00:00
sha256 = "sha256-HYwlAgFKbi6or2eblERdMMjJOJdtt2FCQECUg3MzO8E=";
2020-09-11 22:33:07 +00:00
};
2021-07-28 02:59:25 +00:00
cargoSha256 = "sha256-55/B+LxdbekfaKKyng0lUCU3QnqL34M+QnLUxaPqkqI=";
2020-09-11 22:33:07 +00:00
meta = with lib; {
2020-09-11 22:33:07 +00:00
description = "A human-friendly and fast alternative to cut and (sometimes) awk";
homepage = "https://github.com/theryangeary/choose";
license = licenses.gpl3;
maintainers = with maintainers; [ sohalt ];
};
}