Skip to content
Sign upLog in
Profile icon

*[Anonymous]*

Hacker
@Codemonkey51
Working on tools for using replit better; stay tuned.
twitter
GitHub
website
  • Nix Tutorial

    Cover page
    Made with Nix (beta)

    This is a tutorial about nix, the .replit file and how to nixify your favorite language.

    Recent comments (16)
    JonkPank
    JonkPank
    5 months ago

    How do you make nix install these packages? I have been struggling with this for hours.

    I copied your exact files to a Github repo, imported it into a replit, and when I run it I get:

    bash: cowsay: command not found
    korosu555
    korosu555
    9 months ago

    this has nothing to do with your tutorial necessarily, but, what i dont understand and cant seem to grasp. Why do you still see package.json and package-lock.json with packages in it while people use Nix. I would expect all the packages to be in the replit.nix file and not in package.json for example. I checked some Nix replits and they do not have [packager] in their .replit file, so i expect them in the replit.nix file. Maybe you can clarify

    korosu555
    korosu555
    9 months ago

    Thanks for the tutorial! I tried changing my .replit run command from the default (run = "node index.js") to yours run = ["run", "node index.js"]

    i get the following error:  run node index.js unable to find executable exec: "run": executable file not found in $PATH

    Any idea why?

    Background info: i forked nodejs 16 from https://docs.replit.com/programming-ide/getting-started-nix

    cdCreepArghhh
    cdCreepArghhh
    9 months ago

    FINALLY

    SOMEONE MADE A NIX TUTORIAL

    thanks

Repls
Community
All Repls