34 lines
845 B
Nix
34 lines
845 B
Nix
|
|
{
|
||
|
|
stdenv,
|
||
|
|
lib,
|
||
|
|
rustPlatform,
|
||
|
|
nix-update-script,
|
||
|
|
fetchFromGitHub,
|
||
|
|
}:
|
||
|
|
|
||
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
||
|
|
pname = "nu_plugin_skim";
|
||
|
|
version = "0.17.0";
|
||
|
|
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "idanarye";
|
||
|
|
repo = "nu_plugin_skim";
|
||
|
|
tag = "v${finalAttrs.version}";
|
||
|
|
hash = "sha256-2ZrN+0qdz7fgBS9KPogUIemkzO+uJdAvSOEBkfl7MI4=";
|
||
|
|
};
|
||
|
|
|
||
|
|
cargoHash = "sha256-8oAfnZ+uIckoj3QXb8ypJw/kC2VnMWRMl/oOoRkbtok=";
|
||
|
|
|
||
|
|
nativeBuildInputs = lib.optionals stdenv.cc.isClang [ rustPlatform.bindgenHook ];
|
||
|
|
|
||
|
|
passthru.updateScript = nix-update-script { };
|
||
|
|
|
||
|
|
meta = {
|
||
|
|
description = "Nushell plugin that adds integrates the skim fuzzy finder";
|
||
|
|
mainProgram = "nu_plugin_skim";
|
||
|
|
homepage = "https://github.com/idanarye/nu_plugin_skim";
|
||
|
|
license = lib.licenses.mit;
|
||
|
|
maintainers = with lib.maintainers; [ aftix ];
|
||
|
|
};
|
||
|
|
})
|