1
0

🔨」 fix(Flake): Simplify flake so it work

This commit is contained in:
2024-10-30 18:21:37 +01:00
parent add90bd533
commit d3f431f511

View File

@ -2,35 +2,23 @@
description = "A Nix-flake-based C/C++ development environment"; description = "A Nix-flake-based C/C++ development environment";
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
pogit.url = "github:y-syo/pogit"; pogit.url = "github:y-syo/pogit";
}; };
outputs = inputs:{ nixpkgs, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system: outputs = inputs@{ self, nixpkgs, pogit }:
let let
pkgs = nixpkgs.legacyPackages.${system}; pkgs = nixpkgs.legacyPackages.x86_64-linux; # Use x86_64-linux as an example
in in {
{ devShell.x86_64-linux = pkgs.mkShell {
devShells = ({
default = pkgs.mkShell.override
{
}
{
buildInputs = with pkgs; [ buildInputs = with pkgs; [
gcc gcc
clang clang
];
packages = with pkgs; [
clang
gcc
gdb gdb
norminette norminette
valgrind valgrind
inputs.pogit.packages.${pkgs.system}.default
git git
inputs.pogit.packages.${pkgs.system}.default
]; ];
}; };
}); };
});
} }