Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 37 lines 916 B view raw
1{ 2 stdenv, 3 lib, 4 rustPlatform, 5 pkg-config, 6 nix-update-script, 7 fetchFromGitHub, 8}: 9 10rustPlatform.buildRustPackage (finalAttrs: { 11 pname = "nu_plugin_hcl"; 12 version = "0.105.1"; 13 14 src = fetchFromGitHub { 15 owner = "Yethal"; 16 repo = "nu_plugin_hcl"; 17 tag = finalAttrs.version; 18 hash = "sha256-V1RKZ0Tqq0LTGbHS2lLMyf6M4AgAgWSzkDeFUighO4k="; 19 }; 20 21 cargoHash = "sha256-UbqKfQxut+76yB9F1gT8FEapbX/kHvaShltHpWUdhgc="; 22 23 nativeBuildInputs = [ pkg-config ] ++ lib.optionals stdenv.cc.isClang [ rustPlatform.bindgenHook ]; 24 25 # there are no tests 26 doCheck = false; 27 28 passthru.updateScript = nix-update-script { }; 29 30 meta = { 31 description = "Nushell plugin for parsing Hashicorp Configuration Language files"; 32 mainProgram = "nu_plugin_hcl"; 33 homepage = "https://github.com/Yethal/nu_plugin_hcl"; 34 license = lib.licenses.mit; 35 maintainers = with lib.maintainers; [ yethal ]; 36 }; 37})