Skip to content

Instantly share code, notes, and snippets.

@lamoboos223
Last active May 17, 2024 07:31
Show Gist options
  • Save lamoboos223/399ef25c22099268ba3c5c237aa29ca5 to your computer and use it in GitHub Desktop.
Save lamoboos223/399ef25c22099268ba3c5c237aa29ca5 to your computer and use it in GitHub Desktop.

install on unix like systems

sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume
# restart terminal session
nix --version

create nix shell

nix-shell -p cowsay
cowsay "hello, world!"
exit

create nix file

create shell.nix and add the following to it.

let
    pkgs = import <nixpkgs> {};
in
    pkgs.mkShell {
    packages = [
    pkgs.cowsay
    ];
    }

then fire the command

nix-shell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment