GithubHelp home page GithubHelp logo

example-janet2nix's Introduction

janet2nix Example

Example app using janet2nix. See docs over there.

example-janet2nix's People

Contributors

yzupnick avatar

Watchers

 avatar

Forkers

alan-strohm

example-janet2nix's Issues

Make packages available from dev shell

Works great for the built app in ./result but it would be even better if I could run the following from nix develop shell:

janet -e "(import spork/netrepl) (netrepl/server)"
error: could not find module spork/netrepl:
    /nix/store/l52w8dm92k7fm81y6ib5p44n68qiiass-janet-1.32.1/lib/janet/spork/netrepl.jimage
    /nix/store/l52w8dm92k7fm81y6ib5p44n68qiiass-janet-1.32.1/lib/janet/spork/netrepl.janet
    /nix/store/l52w8dm92k7fm81y6ib5p44n68qiiass-janet-1.32.1/lib/janet/spork/netrepl/init.janet
    /nix/store/l52w8dm92k7fm81y6ib5p44n68qiiass-janet-1.32.1/lib/janet/spork/netrepl.so
  in require-1 [boot.janet] on line 3024, column 20
  in import* [boot.janet] on line 3063, column 15
  in _thunk [eval] (tailcall) on line 1, column 1
  in eval-string [boot.janet] on line 2717, column 36
  in e-switch [boot.janet] (tailcall) on line 4051, column 12
  in cli-main [boot.janet] on line 4077, column 13

Or even to run changed source from within nix develop shell:

$ janet main.janet
error: could not find module spork/math:
    /nix/store/l52w8dm92k7fm81y6ib5p44n68qiiass-janet-1.32.1/lib/janet/spork/math.jimage
    /nix/store/l52w8dm92k7fm81y6ib5p44n68qiiass-janet-1.32.1/lib/janet/spork/math.janet
    /nix/store/l52w8dm92k7fm81y6ib5p44n68qiiass-janet-1.32.1/lib/janet/spork/math/init.janet
    /nix/store/l52w8dm92k7fm81y6ib5p44n68qiiass-janet-1.32.1/lib/janet/spork/math.so
  in require-1 [boot.janet] on line 3024, column 20
  in import* [boot.janet] on line 3063, column 15
  in _thunk [main.janet] (tailcall) on line 1, column 1

Is this possible?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.