Skip to content

Instantly share code, notes, and snippets.

@ungeskriptet
Last active June 29, 2025 12:56
Show Gist options
  • Save ungeskriptet/3280fa69497b3cd956ca302a3c24bfa4 to your computer and use it in GitHub Desktop.
Save ungeskriptet/3280fa69497b3cd956ca302a3c24bfa4 to your computer and use it in GitHub Desktop.
freetz-ng-shell.nix
{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