mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-08 02:38:11 +09:00
nushellPlugins.hcl: init at 0.104.1
This commit is contained in:
parent
69407aaed7
commit
cc43028aa6
2 changed files with 37 additions and 0 deletions
|
@ -22,6 +22,7 @@ lib.makeScope newScope (
|
|||
};
|
||||
skim = callPackage ./skim.nix { };
|
||||
semver = callPackage ./semver.nix { };
|
||||
hcl = callPackage ./hcl.nix { };
|
||||
}
|
||||
// lib.optionalAttrs config.allowAliases {
|
||||
regex = throw "`nu_plugin_regex` is no longer compatible with the current Nushell release.";
|
||||
|
|
36
pkgs/shells/nushell/plugins/hcl.nix
Normal file
36
pkgs/shells/nushell/plugins/hcl.nix
Normal file
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
stdenv,
|
||||
lib,
|
||||
rustPlatform,
|
||||
pkg-config,
|
||||
nix-update-script,
|
||||
fetchFromGitHub,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "nushell_plugin_hcl";
|
||||
version = "0.104.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
repo = "nu_plugin_hcl";
|
||||
owner = "Yethal";
|
||||
tag = version;
|
||||
hash = "sha256-AGTrSLVzbnzMQ2oUuD8Lq4phRt404lSRPiU8Oh9KBG0=";
|
||||
};
|
||||
useFetchCargoVendor = true;
|
||||
cargoHash = "sha256-5bxE+wN3uAbJSIh0wFS/KA5iTyFiSvFWmj14S/Fmkec=";
|
||||
|
||||
nativeBuildInputs = [ pkg-config ] ++ lib.optionals stdenv.cc.isClang [ rustPlatform.bindgenHook ];
|
||||
cargoBuildFlags = [ "--package nu_plugin_hcl" ];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
meta = with lib; {
|
||||
description = "Nushell plugin for parsing Hashicorp Configuration Language files";
|
||||
mainProgram = "nu_plugin_hcl";
|
||||
homepage = "https://github.com/Yethal/nu_plugin_hcl";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ yethal ];
|
||||
platforms = with platforms; all;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue