Skip to content

Commit

Permalink
hello: do not run tests if cross-compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
telent committed Dec 25, 2017
1 parent ed01aa1 commit 29fbc08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/applications/misc/hello/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl }:
{ stdenv, fetchurl, buildPlatform, hostPlatform }:

stdenv.mkDerivation rec {
name = "hello-2.10";
Expand All @@ -8,7 +8,7 @@ stdenv.mkDerivation rec {
sha256 = "0ssi1wpaf7plaswqqjwigppsg5fyh99vdlb9kzl7c9lng89ndq1i";
};

doCheck = true;
doCheck = ( buildPlatform == hostPlatform );

meta = {
description = "A program that produces a familiar, friendly greeting";
Expand Down

0 comments on commit 29fbc08

Please sign in to comment.