Skip to content

Instantly share code, notes, and snippets.

@kirelagin
Last active October 22, 2019 14:36
Show Gist options
  • Save kirelagin/2eddad58ea37112d328a8ad3334996d3 to your computer and use it in GitHub Desktop.
Save kirelagin/2eddad58ea37112d328a8ad3334996d3 to your computer and use it in GitHub Desktop.
nix-shell file for building LineageOS
{ pkgs ? import <nixpkgs> {} }:
let
fhs = pkgs.buildFHSUserEnv {
name = "lineageos";
targetPkgs = pkgs: with pkgs; [
gitRepo
androidenv.androidPkgs_9_0.platform-tools
bc
binutils
bison
ccache
curl
flex
gcc
git
gnumake
gnupg
gperf
imagemagick
libxml2
lz4
lzop
m4
nettools
openssl
perl
pngcrush
procps
python2
rsync
schedtool
SDL
squashfsTools
unzip
utillinux
which
wxGTK30
xml2
zip
];
multiPkgs = pkgs: with pkgs; [
zlib
ncurses5
libcxx
readline
];
runScript = "bash";
profile = ''
export USE_CCACHE=1
'';
};
in fhs.env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment