Last active
June 29, 2025 12:56
-
-
Save ungeskriptet/3280fa69497b3cd956ca302a3c24bfa4 to your computer and use it in GitHub Desktop.
freetz-ng-shell.nix
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.buildFHSEnv { | |
name = "freetz-env"; | |
targetPkgs = pkgs: | |
with pkgs; [ | |
autoconf | |
automake | |
bash | |
bc | |
bison | |
flex | |
gcc | |
gettext | |
glibc.dev | |
gnum4 | |
gnumake | |
gnutls.dev | |
libelf | |
libidn2 | |
libtool | |
libuuid.dev | |
patchutils | |
perl | |
pkg-config | |
sqlite | |
subversionClient | |
wget | |
zsh | |
]; | |
multiPkgs = pkgs: | |
with pkgs; [ | |
acl.dev | |
libcap.dev | |
ncurses | |
ncurses.dev | |
sqlite.dev | |
zlib | |
zlib.dev | |
zstd.dev | |
]; | |
runScript = "zsh"; | |
profile = '' | |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${pkgs.ncurses5}/lib | |
export PKG_CONFIG_PATH="${pkgs.ncurses.dev}/lib/pkgconfig"; | |
''; | |
}; | |
in | |
pkgs.stdenv.mkDerivation { | |
name = "freetz-env-shell"; | |
nativeBuildInputs = [ fhs ]; | |
shellHook = "exec freetz-env"; | |
hardeningDisable = [ "all" ]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment