Last active
July 7, 2024 02:17
-
-
Save thiago-rezende/c857bed83bcb69c9f2ef7c63098ad933 to your computer and use it in GitHub Desktop.
Simple Nix Shell
This file contains 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
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