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

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;};
});
};
};
};
}