Skip to content
Open navbar menu
Sign UpLog In
Profile icon

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

    Cover page
    Made with Nix

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

    Recent comments (16)
    JonkPank
    JonkPank
    1 year 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
    2 years 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
    2 years 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
    2 years ago

    FINALLY

    SOMEONE MADE A NIX TUTORIAL

    thanks

  • pinned

    Cover page
    Made with HTML, CSS, JS
    Recent comments (0)
All Repls