Skip to content

Commit

Permalink
Write default check with runCommand instead of mkDerivation
Browse files Browse the repository at this point in the history
  • Loading branch information
SFrijters committed Jun 20, 2024
1 parent cf6783d commit 5a12cff
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -99,19 +99,11 @@
default = elf-binary;
};

checks.default = pkgs.stdenvNoCC.mkDerivation {
name = "qemu-check-${name}";
dontUnpack = true;
dontBuild = true;
doCheck = true;
checkPhase = ''
${lib.getExe emulate-script}
'';
installPhase = ''
mkdir "$out"
cp qemu-${name}.log "$out"
'';
};
checks.default = pkgs.runCommand "qemu-check-${name}" {} ''
${lib.getExe emulate-script}
mkdir "$out"
cp qemu-${name}.log "$out"
'';

devShells.default = pkgs.mkShell {
name = "${name}-dev";
Expand Down

0 comments on commit 5a12cff

Please sign in to comment.