29 lines
765 B
Nix
29 lines
765 B
Nix
|
|
{
|
||
|
|
description = "nix dev environment";
|
||
|
|
|
||
|
|
inputs = {
|
||
|
|
flake-utils.url = "github:numtide/flake-utils";
|
||
|
|
#nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||
|
|
rust-overlay.url = "github:oxalica/rust-overlay";
|
||
|
|
rust-overlay.inputs.nixpkgs.follows = "nixpkgs";
|
||
|
|
};
|
||
|
|
|
||
|
|
outputs = { self, nixpkgs, flake-utils, rust-overlay, ... }:
|
||
|
|
flake-utils.lib.eachDefaultSystem(system:
|
||
|
|
let
|
||
|
|
overlays = [ (import rust-overlay) ];
|
||
|
|
pkgs = import nixpkgs {
|
||
|
|
inherit system overlays;
|
||
|
|
};
|
||
|
|
toolchain = pkgs.rust-bin.fromRustupToolchain { channel = "nightly-2024-01-22"; };
|
||
|
|
in {
|
||
|
|
devShell = pkgs.mkShell {
|
||
|
|
buildInputs = with pkgs; [
|
||
|
|
pkg-config
|
||
|
|
openssl
|
||
|
|
toolchain
|
||
|
|
];
|
||
|
|
};
|
||
|
|
});
|
||
|
|
}
|