1 2 3 4 5 6 7 8
let pkgs = import <nixpkgs> {}; in { test = pkgs.writeScript "test" '' #!/bin/sh nix-build "${toString ./tests}"; ''; }