commit cursetree

This commit is contained in:
Emile Clark-Boman 2025-09-27 20:46:05 +10:00
parent 7f4f9941de
commit 9b0e752b8a
8 changed files with 95 additions and 37 deletions

47
flake.nix Normal file
View file

@ -0,0 +1,47 @@
{
description = "devshell-cursetree";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
};
outputs = inputs @ {
self,
nixpkgs,
}: let
defaultSystems = ["aarch64-darwin" "aarch64-linux" "i686-linux" "x86_64-darwin" "x86_64-linux"];
forAllSystems = f:
nixpkgs.lib.genAttrs defaultSystems (system:
f system (import nixpkgs {
inherit system;
overlays = builtins.attrValues self.overlays;
}));
in {
overlays.default = final: prev: {};
devShells = forAllSystems (
system: pkgs: let
lib = pkgs.lib;
in {
default = pkgs.mkShell {
packages = with pkgs; [
gnumake
gcc
# Language/Development Tooling
clang-tools
bear # clang compile_commands.json
valgrind
];
};
}
);
checks = self.packages;
packages = forAllSystems (system: pkgs: rec {
default = cursetree;
cursetree = pkgs.cursetree;
});
};
}