No description
Find a file
Nicolas Mattia 5834403f4f
Merge pull request #4 from nmattia/nm-wip-3
Avoid IFD as much as possible
2019-08-02 11:00:30 +02:00
builtins Avoid IFD as much as possible 2019-07-31 15:53:30 +02:00
nix Fix workspaces 2019-07-11 11:39:40 +02:00
test Fix workspaces 2019-07-11 11:39:40 +02:00
build.nix Avoid IFD more 2019-07-31 16:16:51 +02:00
default.nix Avoid IFD as much as possible 2019-07-31 15:53:30 +02:00
lib.nix wip 2019-07-31 13:41:34 +02:00
README.md Add README 2019-07-11 11:42:19 +02:00
test.nix Fix cargo build 2019-07-31 15:54:51 +02:00

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.