Created
November 12, 2018 14:42
-
-
Save rummik/99edc93d1c3bc8cd12f03d4878709a1b to your computer and use it in GitHub Desktop.
Electron nix-shell FHS fiddlings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
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