at 22.05-pre 29 lines 794 B view raw
1{ lib, stdenv, fetchFromGitHub, rustPlatform, installShellFiles, libiconv }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "fselect"; 5 version = "0.7.7"; 6 7 src = fetchFromGitHub { 8 owner = "jhspetersson"; 9 repo = "fselect"; 10 rev = version; 11 sha256 = "sha256-1UpY32itljkpkOjcVEcpZ0iN+PciEnG9tOpbInHwNus="; 12 }; 13 14 cargoSha256 = "sha256-M8hnXHVfKK/aQGXlMpuhoTLalpnHjxSkX+LHwpatu90="; 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}