naersk/README.md
Nicolas Mattia 5888c8d9d6 Add README
2019-07-11 11:42:19 +02:00

430 B

Naersk

Nix support for building cargo crates.

Install

Use niv:

$ niv add nmattia/naersk

And then

let
    pkgs = import <nixpkgs> {};
    sources = import ./nix/sources.nix;
    naersk = pkgs.callPackage sources.naersk {};
in naersk.buildPackage ./path/to/rust {}

NOTE: ./path/to/rust/ should contain a Cargo.lock.