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";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
pogit.url = "github:y-syo/pogit";
};
outputs = inputs:{ nixpkgs, flake-utils, ... }: flake-utils.lib.eachDefaultSystem (system:
outputs = inputs@{ self, nixpkgs, pogit }:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells = ({
default = pkgs.mkShell.override
{
}
{
buildInputs = with pkgs; [
gcc
clang
];
packages = with pkgs; [
clang
gcc
gdb
norminette
valgrind
inputs.pogit.packages.${pkgs.system}.default
git
];
};
});
});
pkgs = nixpkgs.legacyPackages.x86_64-linux; # Use x86_64-linux as an example
in {
devShell.x86_64-linux = pkgs.mkShell {
buildInputs = with pkgs; [
gcc
clang
gdb
norminette
valgrind
git
inputs.pogit.packages.${pkgs.system}.default
];
};
};
}