30 lines
680 B
Nix
30 lines
680 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
|
|
};
|
|
|
|
outputs =
|
|
{ self, nixpkgs }:
|
|
let
|
|
inherit (nixpkgs) lib;
|
|
makePkgs = system: import nixpkgs { inherit system; };
|
|
forAllSystems = f: lib.genAttrs lib.systems.flakeExposed (system: f (makePkgs system));
|
|
in
|
|
{
|
|
formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style);
|
|
|
|
devShells = forAllSystems (pkgs: {
|
|
default = (pkgs.mkShell.override { stdenv = pkgs.llvmPackages.stdenv; }) {
|
|
packages = with pkgs; [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
|
|
boost
|
|
curl
|
|
];
|
|
};
|
|
});
|
|
};
|
|
}
|