2020-03-12 09:20:00 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, installShellFiles }:
|
2019-11-11 10:25:16 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "fselect";
|
2020-04-29 11:14:05 +01:00
|
|
|
version = "0.6.10";
|
2019-11-11 10:25:16 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jhspetersson";
|
|
|
|
repo = "fselect";
|
|
|
|
rev = version;
|
2020-04-29 11:14:05 +01:00
|
|
|
sha256 = "17dz0qj2981plvzp72yisyrjnyz1sy3pqyvhx76ws2754vjgq4ra";
|
2019-11-11 10:25:16 +00:00
|
|
|
};
|
|
|
|
|
2020-04-29 11:14:05 +01:00
|
|
|
cargoSha256 = "19b05gx717xjg4arn4zgrqh7ckzgzx0ygg9gkfzsg7phz7f01626";
|
2019-11-11 10:25:16 +00:00
|
|
|
|
2020-03-12 09:20:00 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage docs/fselect.1
|
|
|
|
'';
|
|
|
|
|
2019-11-11 10:25:16 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Find files with SQL-like queries";
|
|
|
|
homepage = "https://github.com/jhspetersson/fselect";
|
|
|
|
license = with licenses; [ asl20 mit ];
|
2020-01-07 17:47:52 +00:00
|
|
|
maintainers = with maintainers; [ filalex77 ];
|
2019-11-11 10:25:16 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|