Skip to content

Instantly share code, notes, and snippets.

@rummik
Created November 12, 2018 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rummik/99edc93d1c3bc8cd12f03d4878709a1b to your computer and use it in GitHub Desktop.
Save rummik/99edc93d1c3bc8cd12f03d4878709a1b to your computer and use it in GitHub Desktop.
Electron nix-shell FHS fiddlings
{
pkgs ? import <nixpkgs> {},
unstable ? import (fetchTarball https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz) {},
buildFHSUserEnv ? opt: (unstable.buildFHSUserEnv opt).env,
}:
buildFHSUserEnv rec {
name = "electron-env";
targetPkgs = p: (with pkgs;
atomEnv.packages ++
[
gtk2-x11
at-spi2-atk
nodejs-8_x
(yarn.override { nodejs = nodejs-8_x; })
]
);
extraBuildCommands = ''
mv etc etc-
ln -s /host/etc etc
'';
runScript = "${pkgs.zsh}/bin/zsh";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment