38 lines
916 B
Nix
38 lines
916 B
Nix
|
|
{
|
||
|
|
stdenv,
|
||
|
|
lib,
|
||
|
|
rustPlatform,
|
||
|
|
pkg-config,
|
||
|
|
nix-update-script,
|
||
|
|
fetchFromGitHub,
|
||
|
|
}:
|
||
|
|
|
||
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
||
|
|
pname = "nu_plugin_hcl";
|
||
|
|
version = "0.106.1";
|
||
|
|
|
||
|
|
src = fetchFromGitHub {
|
||
|
|
owner = "Yethal";
|
||
|
|
repo = "nu_plugin_hcl";
|
||
|
|
tag = finalAttrs.version;
|
||
|
|
hash = "sha256-LM5tDmPWmpHd4HNnWoEdDXdKUkFA8J8VeDFMw32JXLk=";
|
||
|
|
};
|
||
|
|
|
||
|
|
cargoHash = "sha256-QCkNabv3pqtaRA7Ux5eiZPE/vRILlWKdQce7Gb0vzes=";
|
||
|
|
|
||
|
|
nativeBuildInputs = [ pkg-config ] ++ lib.optionals stdenv.cc.isClang [ rustPlatform.bindgenHook ];
|
||
|
|
|
||
|
|
# there are no tests
|
||
|
|
doCheck = false;
|
||
|
|
|
||
|
|
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 ];
|
||
|
|
};
|
||
|
|
})
|