diff options
author | Will Dietz <w@wdtz.org> | 2018-01-23 11:47:10 -0600 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2018-01-24 09:33:37 -0600 |
commit | 2060f547dffed412c6df38b8c4dcb4088fea0024 (patch) | |
tree | 75784e85b18063a0a3f61c6e4d04aad6f215bd62 /pkgs/tools/misc/file | |
parent | 162398f907b7950e967b16076bcc12dfd9e76481 (diff) |
file: fix for cross
For whatever reason "selfNativeBuildInput = true" doesn't seeem to do the trick here? (reasons may include "it's not intended to solve this problem" ;))
Diffstat (limited to 'pkgs/tools/misc/file')
-rw-r--r-- | pkgs/tools/misc/file/default.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/tools/misc/file/default.nix b/pkgs/tools/misc/file/default.nix index 47d67f91ec733..3765f91343083 100644 --- a/pkgs/tools/misc/file/default.nix +++ b/pkgs/tools/misc/file/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, zlib }: +{ stdenv, fetchurl, file, zlib }: stdenv.mkDerivation rec { name = "file-${version}"; @@ -12,6 +12,7 @@ stdenv.mkDerivation rec { sha256 = "0l1bfa0icng9vdwya00ff48fhvjazi5610ylbhl35qi13d6xqfc6"; }; + nativeBuildInputs = stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) file; buildInputs = [ zlib ]; doCheck = true; |