Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 33 lines 866 B view raw
1{ 2 stdenv, 3 lib, 4 rustPlatform, 5 nushell, 6 pkg-config, 7 nix-update-script, 8}: 9 10rustPlatform.buildRustPackage (finalAttrs: { 11 pname = "nu_plugin_formats"; 12 inherit (nushell) version src cargoHash; 13 14 nativeBuildInputs = [ pkg-config ] ++ lib.optionals stdenv.cc.isClang [ rustPlatform.bindgenHook ]; 15 16 buildAndTestSubdir = "crates/nu_plugin_formats"; 17 18 passthru.updateScript = nix-update-script { 19 # Skip the version check and only check the hash because we inherit version from nushell. 20 extraArgs = [ "--version=skip" ]; 21 }; 22 23 meta = { 24 description = "Formats plugin for Nushell"; 25 mainProgram = "nu_plugin_formats"; 26 homepage = "https://github.com/nushell/nushell/tree/${finalAttrs.version}/crates/nu_plugin_formats"; 27 license = lib.licenses.mit; 28 maintainers = with lib.maintainers; [ 29 viraptor 30 aidalgol 31 ]; 32 }; 33})