2020-03-12 10:20:00 +01:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform, installShellFiles }:
|
2019-11-11 11:25:16 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "fselect";
|
2020-03-10 21:45:39 +01:00
|
|
|
version = "0.6.9";
|
2019-11-11 11:25:16 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jhspetersson";
|
|
|
|
repo = "fselect";
|
|
|
|
rev = version;
|
2020-03-10 21:45:39 +01:00
|
|
|
sha256 = "0cgzvzdsy8vbiapgk1l5dp48c3kq0xmx53yfi486mx8nwvz3ksc0";
|
2019-11-11 11:25:16 +01:00
|
|
|
};
|
|
|
|
|
2020-03-10 21:45:39 +01:00
|
|
|
cargoSha256 = "0mjd9nmaggsszf0kx68yrvy3fqbn35v34c7q3584fv50ipqn6drb";
|
2019-11-11 11:25:16 +01:00
|
|
|
|
2020-03-12 10:20:00 +01:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installManPage docs/fselect.1
|
|
|
|
'';
|
|
|
|
|
2019-11-11 11:25:16 +01: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 18:47:52 +01:00
|
|
|
maintainers = with maintainers; [ filalex77 ];
|
2019-11-11 11:25:16 +01:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|