dotfiles/.config/nixshell/matrix.nix
2023-04-08 16:59:16 +02:00

40 lines
1.2 KiB
Nix

let pkgs = import <nixpkgs> { overlays = [ (import ./cypress-overlay.nix) ]; };
in pkgs.mkShell {
name = "matrix-shell";
buildInputs = with pkgs; [
yarn
docker
act
gtk2
gtk3
rPackages.gbm
libnotify
gnome2.GConf
nss
xorg.libXScrnSaver
alsa-lib
xorg.xorgserver
xorg.libXtst
xorg.xauth
xvfb-run
(with dotnetCorePackages; combinePackages [ sdk_5_0 ])
stdenv.cc.cc zlib glib dbus gtk3 atk pango freetype
fontconfig gdk-pixbuf cairo cups expat libgpg-error alsa-lib nspr nss
xorg.libXrender xorg.libX11 xorg.libXext xorg.libXdamage xorg.libXtst
xorg.libXcomposite xorg.libXi xorg.libXfixes xorg.libXrandr
xorg.libXcursor xorg.libxkbfile xorg.libXScrnSaver libcap systemd libnotify
xorg.libxcb libsecret libuuid at-spi2-atk at-spi2-core libdbusmenu
libdrm
mesa # required for libgbm
cypress
];
shellHook = ''
export NAME="matrix-shell"
export NODE_OPTIONS=--openssl-legacy-provider
export CYPRESS_INSTALL_BINARY=0
export CYPRESS_RUN_BINARY=${pkgs.cypress}/bin/Cypress
'';
}
#https://gist.github.com/r-k-b/2485f977b476aa3f76a47329ce7f9ad4?permalink_comment_id=4402925