about summary refs log blame commit diff
path: root/tvix/default.nix
blob: 5b10748f3d29c423ebb4b7d1d3e98e3215206dc2 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                                                      
# Nix helpers for projects under //tvix

{ pkgs, ... }:

{
  # Construct a sparse tree for naersk's `root` field, for
  # compatibility with the workspace-workaround (see top-level comment
  # in //tvix/Cargo.toml)
  naerskRootFor = cargoToml: pkgs.runCommand "sparse-tvix-root" { } ''
    mkdir $out
    cp -aT ${./Cargo.lock} $out/Cargo.lock
    cp -aT ${cargoToml} $out/Cargo.toml
  '';
}