Files
nixpkgs/pkgs/shells/nushell/plugins/units.nix
VuiMuich c9d191f40b nushellPlugins.highlight, nushellPlugins.units: mark broken
plugins require upstream compatibility with nushell `0.107.0`
2025-09-08 10:35:19 +02:00

36 lines
912 B
Nix

{
stdenv,
lib,
rustPlatform,
pkg-config,
nix-update-script,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "nu_plugin_units";
version = "0.1.7";
src = fetchFromGitHub {
owner = "JosephTLyons";
repo = "nu_plugin_units";
tag = "v${finalAttrs.version}";
hash = "sha256-4donh0UlBbaEwgDxUECKTPWGLuAc9KUmrRty2Ob7ZMA=";
};
cargoHash = "sha256-MjalDrjJTAHay9zcPhA8br2tOkkIzE4etL+yF5MKetY=";
nativeBuildInputs = [ pkg-config ] ++ lib.optionals stdenv.cc.isClang [ rustPlatform.bindgenHook ];
passthru.updateScript = nix-update-script { };
meta = {
description = "Nushell plugin for easily converting between common units";
mainProgram = "nu_plugin_units";
homepage = "https://github.com/JosephTLyons/nu_plugin_units";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ mgttlinger ];
broken = true;
};
})