Skip to content

Instantly share code, notes, and snippets.

@TinHead
Last active November 17, 2022 01:26
Show Gist options
  • Save TinHead/ee620d86be7abd6e27ab5472d813ca02 to your computer and use it in GitHub Desktop.
Save TinHead/ee620d86be7abd6e27ab5472d813ca02 to your computer and use it in GitHub Desktop.
my nix-shell attempt
{ pkgs ? import <nixpkgs> { } }:
let
fhs = pkgs.buildFHSUserEnvBubblewrap {
name = "SkiffOS-fhs";
targetPkgs = pkgs: (with pkgs;
[
bc
binutils
bzip2
chrpath
cpio
diffstat
expect
gcc
gdb
git
gnumake
texinfo
hostname
kconfig-frontends
lzma
m4
ncurses6
patch
perl
python3
rsync
rpcsvc-proto
unzip
util-linux
wget
lz4
which
]);
multiPkgs = null;
extraOutputsToInstall = [ "dev" ];
profile =
''
# patchShebangs *
export NIX_DONT_SET_RPATH="1"
export SKIFF_WORKSPACE=rpi0-test
export SKIFF_CONFIG=pi/0,skiff/core
#make configure
# sed -i 's,/usr/bin/file,${pkgs.file}/bin/file,g' buildroot/support/dependencies/dependencies.sh
'';
};
in
fhs.env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment