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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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";
2022-05-25 08:14:06 +00:00
version = "1.3.4";
2020-09-11 22:33:07 +00:00
src = fetchFromGitHub {
owner = "theryangeary";
repo = pname;
rev = "v${version}";
2022-05-25 08:14:06 +00:00
sha256 = "sha256-yW1quDyQn2xhrlhhPj9DKq7g8LlYKvEKDFj3xSagRTU=";
2020-09-11 22:33:07 +00:00
};
2022-05-25 08:14:06 +00:00
cargoSha256 = "sha256-0INC0LFzlnFnt5pCiU4xePxU8a6GiU1L8bg7zcuFl2k=";
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 ];
};
}