add flake

This commit is contained in:
Viv Lim 2023-05-06 21:40:14 -07:00
parent 766de9eade
commit 60bb423770
1 changed files with 37 additions and 0 deletions

37
flake.nix Normal file
View File

@ -0,0 +1,37 @@
{
description = "post lab";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils, ... }:
let
cargoToml = (builtins.fromTOML (builtins.readFile ./server/Cargo.toml));
in (flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system ;
};
in
with pkgs;
{
devShells.default = mkShell {
buildInputs = [
openssl
pkg-config
nodejs
];
shellHook = ''
'';
};
packages = {
};
}
));
}