Update nushell deps, add flake

This commit is contained in:
Kai Giokas 2025-05-30 15:10:23 -05:00
parent 771e42d740
commit c129ba7e34
No known key found for this signature in database
4 changed files with 737 additions and 638 deletions

1238
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -5,11 +5,11 @@ readme = "README.md"
license = "MIT" license = "MIT"
name = "nu_plugin_ws" name = "nu_plugin_ws"
description = "A Nushell plugin for easily streaming output from websocket endpoints" description = "A Nushell plugin for easily streaming output from websocket endpoints"
version = "0.3.0" version = "0.3.1"
edition = "2021" edition = "2021"
[dependencies] [dependencies]
nu-plugin = "0.101.0" nu-plugin = "0.104.0"
nu-protocol = "0.101.0" nu-protocol = "0.104.0"
tungstenite = { version = "0.24.0", features = ["native-tls"] } tungstenite = { version = "0.24.0", features = ["native-tls"] }
url = "2.5.3" url = "2.5.3"

95
flake.lock generated Normal file
View file

@ -0,0 +1,95 @@
{
"nodes": {
"flake-parts": {
"inputs": {
"nixpkgs-lib": "nixpkgs-lib"
},
"locked": {
"lastModified": 1743550720,
"narHash": "sha256-hIshGgKZCgWh6AYJpJmRgFdR3WUbkY04o82X05xqQiY=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "c621e8422220273271f52058f618c94e405bb0f5",
"type": "github"
},
"original": {
"owner": "hercules-ci",
"repo": "flake-parts",
"type": "github"
}
},
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1748506378,
"narHash": "sha256-oS0Gxh63Df8b8r04lqEYDDLKhHIrVr9/JLOn2bn8JaI=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "3866ad91cfc172f08a6839def503d8fc2923c603",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs-lib": {
"locked": {
"lastModified": 1743296961,
"narHash": "sha256-b1EdN3cULCqtorQ4QeWgLMrd5ZGOjLSLemfa00heasc=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "e4822aea2a6d1cdd36653c134cacfd64c97ff4fa",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "nixpkgs.lib",
"type": "github"
}
},
"root": {
"inputs": {
"flake-parts": "flake-parts",
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",
"version": 7
}

36
flake.nix Normal file
View file

@ -0,0 +1,36 @@
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
flake-parts.url = "github:hercules-ci/flake-parts";
flake-utils.url = "github:numtide/flake-utils";
};
outputs =
inputs@{
flake-parts,
flake-utils,
...
}:
flake-parts.lib.mkFlake { inherit inputs; } {
systems = flake-utils.lib.defaultSystems;
perSystem = { pkgs, ... }:
{
packages = {
default = (pkgs.rustPlatform.buildRustPackage {
name = "nu_plugin_ws";
version = (
builtins.fromTOML (builtins.readFile ./Cargo.toml)
).package.version;
src = ./.;
nativeBuildInputs = [
pkgs.pkg-config
] ++ pkgs.lib.optionals pkgs.stdenv.cc.isClang [
pkgs.rustPlatform.bindgenHook
];
buildInputs = [pkgs.openssl.dev pkgs.openssl];
cargoLock = {lockFile = ./Cargo.lock;};
});
};
};
};
}