update nushell plugins for nu 0.100.0

This commit is contained in:
LordMZTE 2024-11-15 12:47:46 +01:00
parent 6635334b06
commit 95754797ec
Signed by: LordMZTE
GPG key ID: B64802DC33A64FF6
2 changed files with 29 additions and 63 deletions

View file

@ -2,11 +2,11 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1731300529, "lastModified": 1731655425,
"narHash": "sha256-PwzToM8oltfO3GlHpo3hIqmhPZwTbwkdnMIe4NpaN4g=", "narHash": "sha256-86Nv++/fLo7odqCHtkjuu0VDpiJ6WYlnkzqcS5QEPxs=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "3f42f0b61e6c45ca80d87cec5dd11e121d6b9c14", "rev": "91350eb041833e2f37dccd69ff596a1981ebbd33",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -42,11 +42,11 @@
"systems": "systems" "systems": "systems"
}, },
"locked": { "locked": {
"lastModified": 1726560853, "lastModified": 1731533236,
"narHash": "sha256-X6rJYSESBVr3hBoH0WbKE5KvhPU5bloyZ2L4K60/fPQ=", "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide", "owner": "numtide",
"repo": "flake-utils", "repo": "flake-utils",
"rev": "c1dfcf08411b08f6b8615f7d8971a2bfa81d5e8a", "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -1,76 +1,42 @@
{ config, lib, pkgs, ... }: { config, lib, pkgs, ... }:
let
nu-ver = "0.99.0";
in
{ {
options.nushell-plugins = lib.mkOption { }; options.nushell-plugins = lib.mkOption { };
config.nushell-plugins = [ config.nushell-plugins = {
(builtins.getFlake jobcontrol = (builtins.getFlake
"git+https://git.mzte.de/LordMZTE/nu-plugin-jobcontrol.git?rev=6233ae712a945233389a440eecc612b94e2a16d5" "git+https://git.mzte.de/LordMZTE/nu-plugin-jobcontrol.git?rev=3a02910ff138691ecf3557722411e53261d900d4"
).outputs.packages.${pkgs.system}.default ).outputs.packages.${pkgs.system}.default;
(pkgs.rustPlatform.buildRustPackage rec { dbus = (pkgs.rustPlatform.buildRustPackage rec {
name = "nu-plugin-dbus"; name = "nu-plugin-dbus";
version = "0.12.0"; version = "0.13.0";
src = pkgs.fetchCrate { #src = pkgs.fetchCrate {
inherit version; # inherit version;
pname = "nu_plugin_dbus"; # pname = "nu_plugin_dbus";
hash = "sha256-UBpqgw6qqcEDW5bbSWJ/aaSSbEG5B/D6nvcbokX8aeA="; # hash = "sha256-UBpqgw6qqcEDW5bbSWJ/aaSSbEG5B/D6nvcbokX8aeA=";
#};
src = pkgs.fetchFromGitHub {
owner = "LordMZTE";
repo = "nu_plugin_dbus";
rev = "a682d442cef12a84553c5fcd56c8f10f2cbda0e6";
hash = "sha256-BazLyxZ7h3C+8llr0SkdM5+o9HiDXHZMtIPJjY05n4E=";
}; };
cargoHash = "sha256-OrrqvHyhGq8oFmU71/r7AerZhbhZKZBrtSeT3ckKujo="; cargoHash = "sha256-DxcOLycX4kjff+XgParpGjio+MxpEA5t0+9x7XHrKgU=";
nativeBuildInputs = with pkgs; [ pkg-config ]; nativeBuildInputs = with pkgs; [ pkg-config ];
buildInputs = with pkgs; [ dbus ]; buildInputs = with pkgs; [ dbus ];
}) });
(pkgs.rustPlatform.buildRustPackage rec { inherit (pkgs.nushellPlugins) polars formats query;
name = "nu-plugin-formats"; };
version = nu-ver;
src = pkgs.fetchCrate {
inherit version;
pname = "nu_plugin_formats";
hash = "sha256-ccOTLeisxz24ixTULhkbXhbnlcmPTarYl+zevh3/smc=";
};
cargoHash = "sha256-iyAYHVO/JxGGbcD4LnDiI9B7yUfv+mVRpsJs6HUW4DY=";
})
(pkgs.rustPlatform.buildRustPackage rec {
name = "nu-plugin-polars";
version = nu-ver;
src = pkgs.fetchCrate {
inherit version;
pname = "nu_plugin_polars";
hash = "sha256-Um3buNPk/NmW1oXxo34101nJ061C2eyr/Ia/i5wvI2c=";
};
cargoHash = "sha256-wDElrCzkCN8yNA0amGK7iqm+yVbJ0RkgwkFxw+ExveM=";
doCheck = false; # Needs OpenSSL, which build doesn't for some reason.
})
(pkgs.rustPlatform.buildRustPackage rec {
name = "nu-plugin-query";
version = nu-ver;
src = pkgs.fetchCrate {
inherit version;
pname = "nu_plugin_query";
hash = "sha256-tvEdpSdqTVHHi3FCp7CLij8wmxBwPZ7CMMgAimVx/s4=";
};
cargoHash = "sha256-4MDWMBJVOnFj7t35MrNo+YtOLEb1fjTY5FUGI3pRzeA=";
nativeBuildInputs = with pkgs; [ pkg-config ];
buildInputs = with pkgs; [ openssl ];
})
];
config.output.packages.nushell-plugins = pkgs.writeTextFile { config.output.packages.nushell-plugins = pkgs.writeTextFile {
name = "add-plugins.nu"; name = "add-plugins.nu";
text = builtins.concatStringsSep "\n" text = builtins.concatStringsSep "\n"
(map (lib.mapAttrsToList
(d: (name: d:
'' ''
plugin add ${lib.getBin d}/bin/${builtins.replaceStrings ["-"] ["_"] d.name} plugin add ${lib.getBin d}/bin/nu_plugin_${name}
'') '')
config.nushell-plugins); config.nushell-plugins);
}; };