cs010b-work/flake.nix

64 lines
1.2 KiB
Nix
Raw Permalink Normal View History

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"
"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
];
};
}
);
};
}