about summary refs log tree commit diff
path: root/pkgs/sternenseemann/rust/default.nix
blob: 787cf2e130e7d8c3f212ccbef2b259ad96ee5e55 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ writeRustSimpleLib
, buildRustCrate
}:

let

  temp-common = tests: writeRustSimpleLib "temp" {
    buildTests = tests;
    release = false;
    verbose = true;
    meta = {
      description = "Tiny temp dir/file crate for rust";
    };
  } ./temp.rs;

  temp = temp-common false;
  temp-tests = temp-common true;

in {
  inherit
    temp
    temp-tests
    ;
  }