mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
Because otherwise: - The names are inconsistent with the other nushell plugins - `versionCheckHook` cannot find the binaries without setting a special variable
35 lines
873 B
Nix
35 lines
873 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
rustPlatform,
|
|
pkg-config,
|
|
nix-update-script,
|
|
fetchFromGitHub,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "nu_plugin_hcl";
|
|
version = "0.105.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Yethal";
|
|
repo = "nu_plugin_hcl";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-V1RKZ0Tqq0LTGbHS2lLMyf6M4AgAgWSzkDeFUighO4k=";
|
|
};
|
|
|
|
cargoHash = "sha256-UbqKfQxut+76yB9F1gT8FEapbX/kHvaShltHpWUdhgc=";
|
|
|
|
nativeBuildInputs = [ pkg-config ] ++ lib.optionals stdenv.cc.isClang [ rustPlatform.bindgenHook ];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Nushell plugin for parsing Hashicorp Configuration Language files";
|
|
mainProgram = "nu_plugin_hcl";
|
|
homepage = "https://github.com/Yethal/nu_plugin_hcl";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ yethal ];
|
|
};
|
|
})
|