push_swap/flake.nix

47 lines
1.1 KiB
Nix
Raw Permalink Normal View History

2024-01-11 21:28:36 +01:00
{
description = "Flake utils demo";
inputs = {
flake-utils.url = "github:numtide/flake-utils";
generic_c.url = "github:maix0/generic_c";
c_formatter_42.url = "github:maix0/c_formatter_42-flake";
nixGL.url = "github:guibou/nixGL";
nixGL.inputs.nixpkgs.follows = "nixpkgs";
2024-01-11 21:28:36 +01:00
};
outputs = {
self,
nixpkgs,
flake-utils,
generic_c,
c_formatter_42,
nixGL,
2024-01-11 21:28:36 +01:00
}:
flake-utils.lib.eachDefaultSystem (
system: let
pkgs = import nixpkgs {
inherit system;
overlays = [nixGL.overlay];
};
2024-01-11 21:28:36 +01:00
in {
devShell = pkgs.mkShell {
packages = [
pkgs.xorg.libXext
pkgs.xorg.libX11
pkgs.clang
pkgs.clang-tools
pkgs.norminette
pkgs.poppler_utils
pkgs.minilibx
pkgs.valgrind
pkgs.libbsd
pkgs.tree
pkgs.fastmod
generic_c.packages.${system}.default
c_formatter_42.packages.${system}.default
pkgs.nixgl.nixGLIntel
2024-01-11 21:28:36 +01:00
];
};
}
);
}