Skip to content

Commit f69ec52

Browse files
committed
Add gcc to flake
1 parent 32794f3 commit f69ec52

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

flake.nix

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
system: let
1616
name = "cpp-opengl";
1717
pkgs = nixpkgs.legacyPackages.${system};
18+
nativeBuildInputs = with pkgs; [gcc];
1819
buildInputs = with pkgs; [
1920
glfw
2021
glew
@@ -26,11 +27,11 @@
2627
default = pkgs.stdenv.mkDerivation {
2728
src = ./.;
2829
makeFlags = ["PREFIX=$(out)"];
29-
inherit name buildInputs;
30+
inherit name buildInputs nativeBuildInputs;
3031
};
3132
};
3233
devShells.default = pkgs.mkShell {
33-
inherit name buildInputs;
34+
inherit name buildInputs nativeBuildInputs;
3435
};
3536
}
3637
);

0 commit comments

Comments
 (0)