Skip to content

Commit

Permalink
add stdenv lib needed to locate libstdc++.so.6 in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
akshaykarle committed Apr 24, 2024
1 parent 8f9f97a commit 722cda3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
outputs = { self, nixpkgs, flake-utils, poetry2nix }:
flake-utils.lib.eachDefaultSystem (system:
let
nativeBuildInputs = with pkgs; [ stdenv python3 poetry ];
nativeBuildInputs = with pkgs; [ stdenv libgcc python3 poetry ];
buildInputs = with pkgs; [ ];

# see https://github.com/nix-community/poetry2nix/tree/master#api for more functions and examples.
Expand All @@ -33,12 +33,13 @@
default = pkgs.mkShell {
packages = nativeBuildInputs ++ buildInputs;
LD_LIBRARY_PATH = if pkgs.stdenv.isLinux then
"${pkgs.stdenv.cc.cc.lib}/lib:/run/opengl-driver/lib:/run/opengl-driver-32/lib:${pkgs.libGL}/lib:/nix/store/2if9iy5cy0bicwafllpa2aiq30v26app-glib-2.78.1/lib"
"${pkgs.stdenv.cc.cc.lib}/lib:/run/opengl-driver/lib:/run/opengl-driver-32/lib"
else
"$LD_LIBRARY_PATH";
};
CI = pkgs.mkShell {
packages = nativeBuildInputs ++ buildInputs ++ [ pkgs.nodejs_20 ];
LD_LIBRARY_PATH = "$LD_LIBRARY_PATH:${pkgs.stdenv.cc.cc.lib}/lib";
};
};
});
Expand Down

0 comments on commit 722cda3

Please sign in to comment.