rec {
  path = "@testPath@";

  mkDerivation = args:
    derivation ({
      system = builtins.currentSystem;
      PATH = path;
    } // args);
}