Newer
Older
{derivName, target, buildDependencies?[], checkCommand, output}:
let pkgs = import <nixpkgs> {};
in
pkgs.stdenv.mkDerivation {
name = derivName;
src = ./.;
output = output;
buildInputs = buildDependencies;
checkCommand = checkCommand;
doCheck = true;
buildPhase = '''';
checkPhase = ''
ls -la
$checkCommand
'';
installPhase = ''
mkdir -p $out/
cp -r $output $out/
'';
}