mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-11 18:32:23 +08:00
@@ -9,21 +9,20 @@
|
||||
skim,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
rustPlatform.buildRustPackage (finalAttrs: {
|
||||
pname = "nu_plugin_skim";
|
||||
version = "0.14.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "idanarye";
|
||||
repo = pname;
|
||||
tag = "v${version}";
|
||||
repo = "nu_plugin_skim";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-bH+llby34lqnxZXdtTEBPiw50tvvY72h+YkRRdiXXTc=";
|
||||
};
|
||||
|
||||
useFetchCargoVendor = true;
|
||||
cargoHash = "sha256-VTnaEqIuvTalemVhc/GJnTCQh1DCWQrtoo7oGJBZMXs=";
|
||||
|
||||
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ rustPlatform.bindgenHook ];
|
||||
nativeBuildInputs = lib.optionals stdenv.cc.isClang [ rustPlatform.bindgenHook ];
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script { };
|
||||
@@ -32,19 +31,18 @@ rustPlatform.buildRustPackage rec {
|
||||
nu = lib.getExe nushell;
|
||||
plugin = lib.getExe skim;
|
||||
in
|
||||
runCommand "${pname}-test" { } ''
|
||||
runCommand "${finalAttrs.pname}-test" { } ''
|
||||
touch $out
|
||||
${nu} -n -c "plugin add --plugin-config $out ${plugin}"
|
||||
${nu} -n -c "plugin use --plugin-config $out skim"
|
||||
'';
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "A nushell plugin that adds integrates the skim fuzzy finder";
|
||||
mainProgram = "nu_plugin_skim";
|
||||
homepage = "https://github.com/idanarye/nu_plugin_skim";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ aftix ];
|
||||
platforms = platforms.all;
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ aftix ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user