Skip to content
Snippets Groups Projects
run.nix 447 B
Newer Older
Meik Selig's avatar
Meik Selig committed
{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/
    '';
}