mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 05:50:00 +00:00
41 lines
1.2 KiB
Nix
41 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage (finalAttrs: {
|
|
pname = "nu_plugin_bson";
|
|
# NOTE: v26.1140.0 does not build: its Cargo.toml requires nu-plugin ^0.114.0
|
|
# while its Cargo.lock still pins 0.113.1.
|
|
version = "26.1130.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Kissaki";
|
|
repo = "nu_plugin_bson";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-H+pgAckWFW/jPnIL6i90BBothX5zT3/hbcDhmdvdZmY=";
|
|
};
|
|
|
|
cargoHash = "sha256-aGUlItPfrr3Uz/t1XEXBtGM285up3A5Wva1QMKwBrg0=";
|
|
|
|
nativeBuildInputs = [ rustPlatform.bindgenHook ];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Nushell plugin for BSON (Binary JSON) format `from bson` and `to bson`";
|
|
homepage = "https://github.com/Kissaki/nu_plugin_bson";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ philocalyst ];
|
|
mainProgram = "nu_plugin_bson";
|
|
platforms = lib.platforms.unix ++ lib.platforms.windows;
|
|
# "Plugin `bson` is compiled for nushell version 0.113.0, which is not
|
|
# compatible with version 0.115.1".
|
|
# Upstream's main branch has already bumped to nu-plugin 0.115.0, so this
|
|
# should be unbroken by the next release.
|
|
broken = true;
|
|
};
|
|
})
|