1{ lib, stdenv, fetchFromGitHub, rustPlatform, installShellFiles, libiconv }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "fselect";
5 version = "0.8.4";
6
7 src = fetchFromGitHub {
8 owner = "jhspetersson";
9 repo = "fselect";
10 rev = version;
11 sha256 = "sha256-XCm4gWPuza+LxK6fnDq5wAn3GGC3njtWxWng+FXIwOs=";
12 };
13
14 cargoHash = "sha256-XGjXeA2tRJhFbADtrPR11JgmrQI8mK3Rp+ZSIY62H9s=";
15
16 nativeBuildInputs = [ installShellFiles ];
17 buildInputs = lib.optional stdenv.isDarwin libiconv;
18
19 postInstall = ''
20 installManPage docs/fselect.1
21 '';
22
23 meta = with lib; {
24 description = "Find files with SQL-like queries";
25 homepage = "https://github.com/jhspetersson/fselect";
26 license = with licenses; [ asl20 mit ];
27 maintainers = with maintainers; [ Br1ght0ne ];
28 };
29}