Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
893 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
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 ];
};
})