Update nushell deps, add flake
This commit is contained in:
parent
771e42d740
commit
c129ba7e34
4 changed files with 737 additions and 638 deletions
36
flake.nix
Normal file
36
flake.nix
Normal 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;};
|
||||
});
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue