Created
October 12, 2022 03:34
-
-
Save epetousis/c12ca5ae71c286b5e1f4780862655b60 to your computer and use it in GitHub Desktop.
A shell.nix derivation to create a FHS environment that can be used for Chromium development in NixOS
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> {} }: | |
# Caveat: I haven't been able to get fonts to display in the final Chromium build, if you work out how to fix this please add. | |
(pkgs.buildFHSUserEnv { | |
name = "chromium-dev-env"; | |
# These dependencies may include extraneous packages that aren't actually required for building Chromium. | |
targetPkgs = pkgs: (with pkgs; [ | |
python3 git ripgrep | |
perl gcc bison flex gperf pkg-config | |
nss alsa-lib gtk3 nspr freetype ftgl cairo dbus dbus-glib libgnome-keyring | |
xorg.xorgserver xorg.xdpyinfo zlib wayland expat libxml2 glib libglibutil xorg.libX11 xorg.libXcomposite xorg.libXdamage xorg.libXext xorg.libXfixes xorg.libXrandr xorg.libXtst gnome.gdm mesa atk atkmm at-spi2-atk at-spi2-core libxkbcommon pango libdrm cups xorg.libxcb gdb udev noto-fonts dejavu_fonts fontconfig pixman pciutils egl-wayland xorg.libXau xorg.libXcursor xorg.libXdmcp xorg.libXi xorg.libXinerama xorg.libXrender libglvnd | |
libGLU libGL protobuf pipewire libva libepoxy glibc libevent util-linux alsa-lib libkrb5 xorg.libXScrnSaver xorg.libxshmfence gsettings-desktop-schemas xdg-utils liberation_ttf gdk-pixbuf gnome.adwaita-icon-theme | |
]); | |
profile = '' | |
export PATH="$PATH:$HOME/Developer/depot_tools" | |
''; | |
}).env |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment