This commit is contained in:
陈浩南 2023-09-07 23:08:31 +08:00
commit 8ce10cb6c2
5 changed files with 41 additions and 0 deletions

1
.envrc Normal file
View File

@ -0,0 +1 @@
use flake

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
.vscode
.direnv

27
flake.lock Normal file
View File

@ -0,0 +1,27 @@
{
"nodes": {
"nixpkgs": {
"locked": {
"lastModified": 1693953029,
"narHash": "sha256-1+28KQl4YC4IBzKo/epvEyK5KH4MlgoYueJ8YwLGbOc=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "4077a0e4ac3356222bc1f0a070af7939c3098535",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-23.05",
"repo": "nixpkgs",
"type": "github"
}
},
"root": {
"inputs": {
"nixpkgs": "nixpkgs"
}
}
},
"root": "root",
"version": 7
}

11
flake.nix Normal file
View File

@ -0,0 +1,11 @@
{
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-23.05";
outputs = inputs: let pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux; in
{
devShell.x86_64-linux = pkgs.mkShell.override { stdenv = pkgs.gcc13Stdenv; }
{
buildInputs = with pkgs; [ yaml-cpp eigen ];
};
};
}

0
main.cpp Normal file
View File