Node.js: Difference between revisions
imported>Vyorkin mNo edit summary |
imported>Pta2002 Update yarn2nix's package name, now it's just yarn2nix. |
||
Line 15: | Line 15: | ||
This is what was needed to convert a small application server [https://git.shackspace.de/rz/muellshack/tree/3be09715911628b164fa1cf346387555ca26a5b1 shackspace muellshack]: | This is what was needed to convert a small application server [https://git.shackspace.de/rz/muellshack/tree/3be09715911628b164fa1cf346387555ca26a5b1 shackspace muellshack]: | ||
<syntaxHighlight lang=console> | <syntaxHighlight lang=console> | ||
$ nix-shell -p yarn yarn2nix | $ nix-shell -p yarn yarn2nix | ||
$ yarn install | $ yarn install | ||
# creates yarn.lock | # creates yarn.lock | ||
Line 24: | Line 24: | ||
with (import <nixpkgs> {}); | with (import <nixpkgs> {}); | ||
rec { | rec { | ||
muellshack = | muellshack = mkYarnPackage { | ||
name = "muellshack"; | name = "muellshack"; | ||
src = ./.; | src = ./.; |