mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-11-11 20:43:00 +01:00
various nushell updates
This commit is contained in:
parent
e5393214bd
commit
ef7997a30d
3 changed files with 38 additions and 7 deletions
14
.config/nushell/conf.d/99-attic.nu
Normal file
14
.config/nushell/conf.d/99-attic.nu
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
def "attic bpush" [
|
||||||
|
cache:string, # The Attic cache to push to
|
||||||
|
flake:string, # The flake reference to build
|
||||||
|
...nixargs:string, # Extra arguments for Nix
|
||||||
|
--nom(-n), # Use Nom
|
||||||
|
] {
|
||||||
|
let outpath = (^(if $nom { "nom" } else { "nix" })
|
||||||
|
build
|
||||||
|
--no-link
|
||||||
|
--print-out-paths
|
||||||
|
$flake
|
||||||
|
...$nixargs)
|
||||||
|
attic push $cache $outpath
|
||||||
|
}
|
|
@ -8,7 +8,7 @@ def "udisksctl lockumount" [--block-device (-b): path] {
|
||||||
|
|
||||||
# This is borked on the udisksctl side
|
# This is borked on the udisksctl side
|
||||||
#udisksctl unmount -p $plain_dev
|
#udisksctl unmount -p $plain_dev
|
||||||
(dbus call --system
|
(dbus call --system --timeout 356day
|
||||||
--dest org.freedesktop.UDisks2
|
--dest org.freedesktop.UDisks2
|
||||||
$plain_dev
|
$plain_dev
|
||||||
org.freedesktop.UDisks2.Filesystem
|
org.freedesktop.UDisks2.Filesystem
|
||||||
|
|
|
@ -1,13 +1,17 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
|
let
|
||||||
|
nu-ver = "0.95.0";
|
||||||
|
in
|
||||||
{
|
{
|
||||||
options.nushell-plugins = lib.mkOption { };
|
options.nushell-plugins = lib.mkOption { };
|
||||||
|
|
||||||
config.nushell-plugins = [
|
config.nushell-plugins = [
|
||||||
(pkgs.rustPlatform.buildRustPackage {
|
(pkgs.rustPlatform.buildRustPackage rec {
|
||||||
name = "nu-plugin-dbus";
|
name = "nu-plugin-dbus";
|
||||||
src = pkgs.fetchCrate {
|
|
||||||
pname = "nu_plugin_dbus";
|
|
||||||
version = "0.8.0";
|
version = "0.8.0";
|
||||||
|
src = pkgs.fetchCrate {
|
||||||
|
inherit version;
|
||||||
|
pname = "nu_plugin_dbus";
|
||||||
hash = "sha256-Ogc4iw0LIDoxyQnoTXzbNaQ6jHtkjmWja/a3TB1TZjk=";
|
hash = "sha256-Ogc4iw0LIDoxyQnoTXzbNaQ6jHtkjmWja/a3TB1TZjk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -16,21 +20,23 @@
|
||||||
nativeBuildInputs = with pkgs; [ pkg-config ];
|
nativeBuildInputs = with pkgs; [ pkg-config ];
|
||||||
buildInputs = with pkgs; [ dbus ];
|
buildInputs = with pkgs; [ dbus ];
|
||||||
})
|
})
|
||||||
(pkgs.rustPlatform.buildRustPackage {
|
(pkgs.rustPlatform.buildRustPackage rec {
|
||||||
name = "nu-plugin-formats";
|
name = "nu-plugin-formats";
|
||||||
|
version = nu-ver;
|
||||||
src = pkgs.fetchCrate {
|
src = pkgs.fetchCrate {
|
||||||
|
inherit version;
|
||||||
pname = "nu_plugin_formats";
|
pname = "nu_plugin_formats";
|
||||||
version = "0.95.0";
|
|
||||||
hash = "sha256-nwfLQxVzzUfBn7m1F669NThqzG9bAXlM/lCAVGDKY8o=";
|
hash = "sha256-nwfLQxVzzUfBn7m1F669NThqzG9bAXlM/lCAVGDKY8o=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "sha256-e8VcSJYH5P4LR1bFbmeiiF+fSfRlqTEzfnkPtUFmB2I=";
|
cargoSha256 = "sha256-e8VcSJYH5P4LR1bFbmeiiF+fSfRlqTEzfnkPtUFmB2I=";
|
||||||
})
|
})
|
||||||
(pkgs.rustPlatform.buildRustPackage {
|
(pkgs.rustPlatform.buildRustPackage rec {
|
||||||
name = "nu-plugin-polars";
|
name = "nu-plugin-polars";
|
||||||
|
version = nu-ver;
|
||||||
src = pkgs.fetchCrate {
|
src = pkgs.fetchCrate {
|
||||||
|
inherit version;
|
||||||
pname = "nu_plugin_polars";
|
pname = "nu_plugin_polars";
|
||||||
version = "0.95.0";
|
|
||||||
hash = "sha256-d2giFOByeX/lLc6k3e4cf/RodwV2yLjqeZD+cmVIwK8=";
|
hash = "sha256-d2giFOByeX/lLc6k3e4cf/RodwV2yLjqeZD+cmVIwK8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -38,6 +44,17 @@
|
||||||
|
|
||||||
doCheck = false; # Needs OpenSSL, which build doesn't for some reason.
|
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-3lWBqP3ZeHsQApvZmvAsVgseZWrIPDfgm+lZxkDO1JE=";
|
||||||
|
};
|
||||||
|
|
||||||
|
cargoSha256 = "sha256-BOAzv7N9UfIxIA0YGYLc/DfU5VSowYtxe6UYZjQ/rf4=";
|
||||||
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
config.output.packages.nushell-plugins =
|
config.output.packages.nushell-plugins =
|
||||||
|
|
Loading…
Reference in a new issue