with import (import ./nixpkgs.nix) {}; stdenv.mkDerivation { name = "rpn-calculator"; src = ./.; buildInputs = [ catch2 ]; nativeBuildInputs = [ afl ]; doCheck = true; checkTarget = "run_test"; installPhase = '' mkdir -p $out find . -executable -type f -exec cp {} $out \; ''; }