Skip to content

Instantly share code, notes, and snippets.

@onsah
Created November 3, 2024 18:48
Show Gist options
  • Save onsah/493d583b5813a292c8ef5b344de04f39 to your computer and use it in GitHub Desktop.
Save onsah/493d583b5813a292c8ef5b344de04f39 to your computer and use it in GitHub Desktop.
Log shell.nix
{
system ? builtins.currentSystem,
sources ? import ./npins,
}:
let
pkgs = import sources.nixpkgs { inherit system; };
lib = pkgs.lib;
in
pkgs.mkShell {
buildInputs = with pkgs; [ electron_27 ];
packages = with pkgs; [
nodejs
yarn
clojure
python311
];
NIX_LD_LIBRARY_PATH = with pkgs; lib.makeLibraryPath [
alsa-lib
at-spi2-atk
cairo
cups
dbus
expat
gdk-pixbuf
glib
gtk3
nss
nspr
xorg.libX11
xorg.libxcb
xorg.libXcomposite
xorg.libXdamage
xorg.libXext
xorg.libXfixes
xorg.libXrandr
xorg.libxkbfile
xorg.libXScrnSaver
xorg.libxshmfence
pango
pciutils
stdenv.cc.cc.lib
systemd
libdrm
mesa
libxkbcommon
libGL
vulkan-loader
];
NIX_LD = lib.fileContents "${pkgs.stdenv.cc}/nix-support/dynamic-linker";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment