38 lines
718 B
Nix
38 lines
718 B
Nix
{
|
|
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 = {
|
|
};
|
|
|
|
}
|
|
));
|
|
}
|
|
|