-
-
Save tyrion/68d8cb8e5c5cb28f06cbd468c3affded to your computer and use it in GitHub Desktop.
This file contains 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> {} }: | |
let | |
version = "1.6.3"; | |
mailspring-src = pkgs.fetchgit { | |
url = "https://github.com/Foundry376/Mailspring"; | |
rev = "refs/tags/${version}"; | |
sha256 = "1lnn38yw5pqiq1mbv7g4nggs01jbrzaq6xg7hdj339a0ffm44ll5"; | |
}; | |
in pkgs.buildFHSUserEnv { | |
name = "mailspring2"; | |
multiPkgs = pkgs: with pkgs; [ | |
libsecret | |
libgnome-keyring | |
git | |
gnome2.GConf | |
gtk2 | |
gtk3 | |
libudev0-shim | |
libgcrypt | |
libnotify | |
xorg.libXtst | |
nss | |
python | |
gvfs | |
xdg_utils | |
alsaLib | |
cups | |
dbus | |
glib | |
nspr | |
pango | |
atk | |
at_spi2_atk | |
cairo | |
gdk-pixbuf | |
expat | |
libuuid | |
coreutils | |
fontconfig | |
freetype | |
wget | |
electron | |
xorg.libX11 | |
xorg.libXScrnSaver | |
xorg.libXcomposite | |
xorg.libXcursor | |
xorg.libXdamage | |
xorg.libXext | |
xorg.libXfixes | |
xorg.libXi | |
xorg.libXrandr | |
xorg.libXrender | |
xorg.libXtst | |
xorg.libxcb | |
xorg.libxkbfile | |
gnome3.gnome-keyring | |
gnome3.gcr | |
nodejs | |
gcc | |
gnumake | |
glibc | |
binutils | |
openssl | |
pkgconfig | |
gnome3.libsecret.dev | |
glib.dev | |
xlibs.libX11.dev | |
xorg.libxkbfile.dev | |
xorg.xorgproto | |
]; | |
targetPkgs = pkgs: []; | |
runScript = "bash"; | |
} | |
# deps extracted from deb | |
# libsecret-1-dev, gir1.2-gnomekeyring-1.0, git, gconf2, gconf-service, libgtk2.0-0, libudev0 | libudev1, libgcrypt11 | libgcrypt20, libnotify4, libxtst6, libnss3, python, gvfs-bin, xdg-utils | |
# COMPILETIME | |
# export PKG_CONFIG_PATH=/usr/lib/pkgconfig | |
# export LIBRARY_PATH=$LD_LIBRARY_PATH | |
# RUNTIME | |
# https://stackoverflow.com/questions/28953925/glib-gio-error-no-gsettings-schemas-are-installed-on-the-system | |
# export XDG_DATA_DIRS="$(printf "%s:" /usr/share/gsettings-schemas/*)$XDG_DATA_DIRS" | |
# node_modules/electron/dist/electron --inspect ./app --enable-logging --dev |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment