ufo/flake.nix

26 lines
902 B
Nix
Raw Normal View History

2023-09-07 23:08:31 +08:00
{
2023-09-11 19:54:50 +08:00
inputs.nixos.url = "github:CHN-beta/nixos";
2023-09-26 11:59:24 +08:00
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
2023-09-07 23:08:31 +08:00
2023-09-26 11:59:24 +08:00
outputs = inputs:
let
2023-09-27 19:24:41 +08:00
# pkgs = inputs.nixpkgs.legacyPackages.x86_64-linux;
pkgs = import inputs.nixpkgs
{
localSystem = { system = "x86_64-linux"; gcc = { arch = "alderlake"; tune = "alderlake"; }; };
config.allowUnfree = true;
};
2023-09-26 12:58:34 +08:00
localPackages = import "${inputs.nixos}/local/pkgs" { inherit pkgs; inherit (inputs.nixpkgs) lib; };
2023-09-26 11:59:24 +08:00
in
2023-09-07 23:08:31 +08:00
{
2023-09-26 12:58:34 +08:00
devShell.x86_64-linux = pkgs.mkShell.override { stdenv = pkgs.gcc13Stdenv; }
2023-09-26 11:59:24 +08:00
{
2023-09-26 12:58:34 +08:00
packages = with pkgs; [ pkg-config cmake ninja ];
2023-09-28 10:50:38 +08:00
buildInputs = (with pkgs; [ eigen yaml-cpp fmt highfive tbb_2021_8.dev ])
++ (with localPackages; [ concurrencpp matplotplusplus zpp-bits ]);
# hardeningDisable = [ "all" ];
2023-09-26 13:43:11 +08:00
# NIX_DEBUG = "1";
2023-09-26 11:59:24 +08:00
};
2023-09-07 23:08:31 +08:00
};
}