Created
October 5, 2023 16:59
-
-
Save thelissimus/9a39f1057e59a4f8612e537de0a83c63 to your computer and use it in GitHub Desktop.
Nix shell for solving zlib problem.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ pkgs ? import <nixpkgs> { } }: | |
pkgs.mkShell rec { | |
buildInputs = with pkgs; [ zlib ]; | |
shellHook = '' | |
export LD_LIBRARY_PATH="${pkgs.lib.makeLibraryPath buildInputs}:$LD_LIBRARY_PATH" | |
export LD_LIBRARY_PATH="${pkgs.stdenv.cc.cc.lib.outPath}/lib:$LD_LIBRARY_PATH" | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment