Skip to content

Instantly share code, notes, and snippets.

@thelissimus
Created October 5, 2023 16:59
Show Gist options
  • Save thelissimus/9a39f1057e59a4f8612e537de0a83c63 to your computer and use it in GitHub Desktop.
Save thelissimus/9a39f1057e59a4f8612e537de0a83c63 to your computer and use it in GitHub Desktop.
Nix shell for solving zlib problem.
{ 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