Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 33 lines 845 B view raw
1{ 2 stdenv, 3 lib, 4 rustPlatform, 5 nix-update-script, 6 fetchFromGitHub, 7}: 8 9rustPlatform.buildRustPackage (finalAttrs: { 10 pname = "nu_plugin_skim"; 11 version = "0.15.0"; 12 13 src = fetchFromGitHub { 14 owner = "idanarye"; 15 repo = "nu_plugin_skim"; 16 tag = "v${finalAttrs.version}"; 17 hash = "sha256-8gO6pT40zBlFxPRapIO9qpMI9whutttqYgOPr91B9Ec="; 18 }; 19 20 cargoHash = "sha256-2poE7Nnwe5rRoU8WknEgzX68z+y9ZplX53v8FURzxmE="; 21 22 nativeBuildInputs = lib.optionals stdenv.cc.isClang [ rustPlatform.bindgenHook ]; 23 24 passthru.updateScript = nix-update-script { }; 25 26 meta = { 27 description = "Nushell plugin that adds integrates the skim fuzzy finder"; 28 mainProgram = "nu_plugin_skim"; 29 homepage = "https://github.com/idanarye/nu_plugin_skim"; 30 license = lib.licenses.mit; 31 maintainers = with lib.maintainers; [ aftix ]; 32 }; 33})