Skip to content

Instantly share code, notes, and snippets.

@rycee
Created October 18, 2017 20:33
Show Gist options
  • Save rycee/c4a49338aa5c6571d78ef0710987527c to your computer and use it in GitHub Desktop.
Save rycee/c4a49338aa5c6571d78ef0710987527c to your computer and use it in GitHub Desktop.
{ pkgs ? import <nixpkgs> {} }:
let
stdenv = pkgs.stdenv;
deps = with pkgs; [
zlib.out
xlibs.libSM.out
# More packages go here...
];
in
stdenv.mkDerivation {
name = "qtjambivars";
shellHook = ''
export LD_LIBRARY_PATH=${stdenv.lib.makeLibraryPath deps}''${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment