1
0
This repository has been archived on 2024-11-25. You can view files and clone it, but cannot push or open issues or pull requests.
CPP_Module_00/flake.nix

36 lines
799 B
Nix
Raw Normal View History

2024-10-24 22:48:29 +02:00
{
description = "A Nix-flake-based C/C++ development environment";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
pogit = {
url = "github:y-syo/pogit";
inputs.nixpkgs.follows = "nixpkgs";
};
2024-10-24 22:48:29 +02:00
};
outputs = inputs@{ nixpkgs, ... }:
2024-10-24 22:48:29 +02:00
let
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
pkgs = import nixpkgs { inherit system; };
});
in {
devShells = forEachSupportedSystem ({ pkgs }: {
default = pkgs.mkShell.override
{}
{
packages = with pkgs; [
gcc
clang
norminette
valgrind
git
gdb
inputs.pogit.packages.${pkgs.system}.default
bear
];
};
});
};
2024-10-24 22:48:29 +02:00
}