enby/flake.nix

56 lines
1.3 KiB
Nix

{
description = "devshell-dorne";
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: {
default = pkgs.mkShell {
packages = with pkgs; [
gnumake
# C Compiler & Runtime
gcc
glibc.dev
# C Development Tooling
clang-tools
bear # clang compile_commands.json
valgrind # memory debugging+profiling
# .NET Compiler & Runtime
(with dotnetCorePackages;
combinePackages [
sdk_9_0
runtime_9_0
])
# .NET Development Tooling
ilspycmd
];
shell = "${pkgs.bash}/bin/bash";
# so I can easily read the glibc header files
GLIBC = "${pkgs.glibc.dev}/include";
};
}
);
};
}