Git Product home page Git Product logo

nibbit's Introduction

Usage

start-prefetch will attempt to fetch a runtime closure for an attribute path via bittorrent using aria2. At the moment the closure is computed by following References: headers in the .narinfos, so the whole closure must be available. Later on we might be able to work around incomplete runtime closures by using the build-time closure instead.

Config is currently done by changing variables at the top of the source file.

  1. ./dev to get a nix-shell with deps
  2. Start aria2c: aria2c -D --enable-rpc=true --bt-detach-seed-only=true
  3. Checkout a repo of torrent & narinfos, e.g. https://github.com/srd424/aux-torrent, set REPO_DIR to checkout dir
  4. Set NIX_EXPR to a path containing a nix expression, e.g. a checkout of https://github.com/auxolotl/core
  5. Set ATTR_PATH to a nix attribute path, e.g. stdenv
  6. run start-prefetch

aria2p show can be used to monitor download progress; downloads will go to DL_DIR, by default ~/.cache/nibbit/nix. When finished, nix --extra-experimental-features nix-command copy --from file://$HOME/.cache/nibbit/nix <STORE_PATH>should import the cached binaries into your nix store (the top-level <STORE_PATH> is printed by start-prefetch.)

TODOs

  • a proper command line
  • a config file
  • tool to check if the download of a given closure has finished (which could then automatically import the nars)
  • a proper tool to 'publish' torrents
  • a cleanup/prune tool to remove older torrents (maybe anything that's not in the subscribed/published closures, possibly plus a few older files up to a defined limit)
  • support for multiple simultaneous expression + attribute combinations

nibbit's People

Contributors

srd424 avatar

Stargazers

Pedro Lara Campos avatar

Watchers

 avatar

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.