add flake
This commit is contained in:
parent
766de9eade
commit
60bb423770
|
@ -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 = {
|
||||
};
|
||||
|
||||
}
|
||||
));
|
||||
}
|
||||
|
Loading…
Reference in New Issue