Skip to content

Instantly share code, notes, and snippets.

@kirelagin
Created June 9, 2019 20:48
Show Gist options
  • Save kirelagin/146ef284208a94dcd9c7ee3204a33895 to your computer and use it in GitHub Desktop.
Save kirelagin/146ef284208a94dcd9c7ee3204a33895 to your computer and use it in GitHub Desktop.
nix-shell file for building Openwrt
{ 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