Up until now, the little coding I have done with Nim has had all shared code in 
a single directory, and using a --path=... in the nim.cfg file for the project.

This is clearly not a very scalable (nor particularly idiomatic) solution to 
sharing code between projects, so I am looking to put the various bits of code 
into their own local packages. Alas, I am getting a bloody head from continuing 
to hit it against a brick wall in trying to achieve this, and since you kind 
fellows out there have been so helpful in the past I thought that while I go to 
bandage up my head I would graciously ask your help in achieving this.

I am doing this on Linux, so am looking for a Linux solution to this.

I have created a file `~/.config/nimble/nimble.ini`

The file contains:
    
    
    [PackageList]
    name = "Local project packages"
    path = r"$HOME/Dev/nim-pkgs/packages.json"
    
    
    Run

I have created a file called `$HOME/Dev/nim-pkgs/packages.json`. The contents 
of the file are:
    
    
    [
      {
        "name": "run_context",
        "url": "./run_context"
      }
    ]
    
    
    Run

Within `$HOME/Dev/nim-pkgs/run_context` I have a `run_context.nimble` file and 
the source file.

Yet `nimble -i list` will not list `run_context` as an installed package.

Reply via email to