summaryrefslogtreecommitdiff
path: root/default.nix
blob: 2355d107f9be2f58a1ddafa9cceb3dbfc0fcd0b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
with import <nixpkgs> {}; 
# deps generated with
# ~/.cargo/bin/generate-nix-pkg Cargo.lock -o deps2.nix
let mkRustCrate = import ./rust-utils.nix {
    lib = pkgs.lib;
    inherit buildPlatform stdenv;
  }; in
let deps = import ./deps.nix { inherit pkgs mkRustCrate; }; in
{
  rafs_0_1_0 = mkRustCrate {
    crateName = "rafs";
    version = "0.1.0";
    dependencies = with deps; [ fuse_0_3_0 libc_0_2_22 time_0_1_37 ];
    buildInputs = [ fuse pkgconfig glibc ];
    src = ./.;
    release = true;
  } rustUnstable.rustc;
}