Skip to content

Instantly share code, notes, and snippets.

@PetarKirov
Created November 24, 2020 13:34
Show Gist options
  • Save PetarKirov/28aefbd2fded4d7777eac8a886dcf6a1 to your computer and use it in GitHub Desktop.
Save PetarKirov/28aefbd2fded4d7777eac8a886dcf6a1 to your computer and use it in GitHub Desktop.
Nix: use specific version of Nodejs and set LD_LIBRARY_PATH
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
mkShell {
buildInputs = [
fish
git
nodejs-12_x
(yarn.override { nodejs = nodejs-12_x; })
gnumake
python3
gccStdenv
eudev
libusb1
libusb1.dev
pkg-config
which
];
LD_LIBRARY_PATH="${libusb1}/lib";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment