Skip to content

Instantly share code, notes, and snippets.

@thiago-rezende
Last active July 7, 2024 02:17
Show Gist options
  • Save thiago-rezende/c857bed83bcb69c9f2ef7c63098ad933 to your computer and use it in GitHub Desktop.
Save thiago-rezende/c857bed83bcb69c9f2ef7c63098ad933 to your computer and use it in GitHub Desktop.
Simple Nix Shell
let
nixpkgs = fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-unstable";
pkgs = import nixpkgs { config = {}; overlays = []; };
in
pkgs.mkShellNoCC {
packages = with pkgs; [
neovim
cowsay
lolcat
libuuid
];
LANG = "C";
LC_ALL = "C";
LANGUAGE = "C";
GREETING = "Hello, Nix!";
shellHook = ''
export LD_LIBRARY_PATH="${pkgs.lib.makeLibraryPath [ pkgs.libuuid ]}:$LD_LIBRARY_PATH"
echo $GREETING | cowsay | lolcat
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment