Created
June 9, 2019 20:48
-
-
Save kirelagin/146ef284208a94dcd9c7ee3204a33895 to your computer and use it in GitHub Desktop.
nix-shell file for building Openwrt
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 | |
openwrt-env = pkgs.buildFHSUserEnv { | |
name = "openwrt"; | |
targetPkgs = pkgs: with pkgs; [ | |
which # NASTY FUCKER all over | |
pkgconfig # (make menuconfig -> ncurses) | |
autoconf | |
automake | |
gcc | |
gnumake | |
perl | |
python2 | |
bash | |
binutils # ar | |
bzip2 | |
file | |
findutils | |
gawk | |
getopt | |
gitAndTools.git | |
gnugrep | |
gnutar | |
patch | |
unzip | |
wget | |
ncurses.dev | |
]; | |
}; | |
in | |
openwrt-env.env |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment