3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/text/choose/default.nix

26 lines
612 B
Nix
Raw Normal View History

{ lib
2020-09-11 23:33:07 +01:00
, fetchFromGitHub
, rustPlatform
}:
rustPlatform.buildRustPackage rec {
pname = "choose";
2021-07-28 03:59:25 +01:00
version = "1.3.3";
2020-09-11 23:33:07 +01:00
src = fetchFromGitHub {
owner = "theryangeary";
repo = pname;
rev = "v${version}";
2021-07-28 03:59:25 +01:00
sha256 = "sha256-HYwlAgFKbi6or2eblERdMMjJOJdtt2FCQECUg3MzO8E=";
2020-09-11 23:33:07 +01:00
};
2021-07-28 03:59:25 +01:00
cargoSha256 = "sha256-55/B+LxdbekfaKKyng0lUCU3QnqL34M+QnLUxaPqkqI=";
2020-09-11 23:33:07 +01:00
meta = with lib; {
2020-09-11 23:33:07 +01: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 ];
};
}