2024-11-03 03:18:12 +00:00
|
|
|
{
|
|
|
|
description = "Good basic flake template";
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "nixpkgs/nixpkgs-unstable";
|
|
|
|
flake-utils.url = "github:numtide/flake-utils";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs = { self, nixpkgs, flake-utils }:
|
|
|
|
flake-utils.lib.eachDefaultSystem (system:
|
|
|
|
let
|
|
|
|
systempkgs = nixpkgs.legacyPackages.${system};
|
|
|
|
in
|
|
|
|
{
|
|
|
|
devShells.default = systempkgs.mkShell {
|
|
|
|
buildInputs = with systempkgs; [
|
|
|
|
# specific nodejs versions available, e.g. nodejs_18
|
|
|
|
rustc
|
|
|
|
cargo
|
|
|
|
rust-analyzer
|
|
|
|
rustup
|
2024-11-03 03:45:41 +00:00
|
|
|
openssl.dev
|
|
|
|
pkg-config
|
2024-11-03 03:18:12 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
}
|