diff --git a/pkgs/by-name/fs/fsel/package.nix b/pkgs/by-name/fs/fsel/package.nix new file mode 100644 index 000000000000..fbda8ed2ab33 --- /dev/null +++ b/pkgs/by-name/fs/fsel/package.nix @@ -0,0 +1,42 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + installShellFiles, + nix-update-script, + pkg-config, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "fsel"; + version = "3.1.0"; + + src = fetchFromGitHub { + owner = "Mjoyufull"; + repo = "fsel"; + tag = finalAttrs.version; + hash = "sha256-h8CA2ZR/XKQJDq5uopOD1I+ZpWehuVNiJLeuuLaKAQA="; + }; + + cargoHash = "sha256-RHDTdwbsKQtz8Pwq3pNgoUvK8y5NO94zVhsKiBVET+I="; + + nativeBuildInputs = [ + installShellFiles + pkg-config + ]; + + postInstall = '' + installManPage fsel.1 + ''; + + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Fast TUI app launcher and fuzzy finder for GNU/Linux and *BSD"; + homepage = "https://github.com/Mjoyufull/fsel"; + license = lib.licenses.bsd2; + maintainers = with lib.maintainers; [ nettika ]; + mainProgram = "fsel"; + platforms = with lib.platforms; linux ++ freebsd ++ openbsd ++ netbsd; + }; +})