2025-01-09 12:56:08 -08:00
|
|
|
{
|
|
|
|
description = "A very basic flake";
|
|
|
|
|
|
|
|
inputs = {
|
|
|
|
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
|
|
|
};
|
|
|
|
|
|
|
|
outputs =
|
|
|
|
{ self, nixpkgs }:
|
|
|
|
let
|
|
|
|
systems = [
|
|
|
|
"x86_64-linux"
|
|
|
|
"aarch64-linux"
|
2025-01-09 13:00:01 -08:00
|
|
|
"x86_64-darwin"
|
|
|
|
"aarch64-darwin"
|
2025-01-09 12:56:08 -08:00
|
|
|
];
|
|
|
|
forAllSystems = nixpkgs.lib.genAttrs systems;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
packages = forAllSystems (
|
|
|
|
system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
in
|
|
|
|
{
|
|
|
|
default = pkgs.callPackage (
|
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
meson,
|
|
|
|
ninja,
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "cs010b-work";
|
|
|
|
version = "unstable";
|
|
|
|
|
|
|
|
src = ./.;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
];
|
|
|
|
}
|
|
|
|
) { };
|
|
|
|
}
|
|
|
|
);
|
|
|
|
devShells = forAllSystems (
|
|
|
|
system:
|
|
|
|
let
|
|
|
|
pkgs = import nixpkgs { inherit system; };
|
|
|
|
in
|
|
|
|
{
|
|
|
|
default = pkgs.mkShell {
|
|
|
|
inputsFrom = [ self.packages.${system}.default ];
|
|
|
|
|
|
|
|
packages = with pkgs; [
|
|
|
|
clang-tools_19
|
|
|
|
mesonlsp
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
);
|
|
|
|
};
|
|
|
|
}
|