Last active
November 17, 2022 01:26
-
-
Save TinHead/ee620d86be7abd6e27ab5472d813ca02 to your computer and use it in GitHub Desktop.
my nix-shell attempt
This file contains hidden or 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 | |
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