aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorJohn Darrington <jmd@gnu.org>2013-12-13 10:52:12 +0100
committerLudovic Courtès <ludo@gnu.org>2013-12-13 23:36:57 +0100
commite93c24df09d2b5ce453734d4d6d1b3d1012d628d (patch)
tree0fbc0a2d45d4cc01d16d00c1b1420107d570e81f /gnu/packages
parent1ae6df81dbf98956e489a7668d2280ad9c4d72e4 (diff)
downloadpatches-e93c24df09d2b5ce453734d4d6d1b3d1012d628d.tar
patches-e93c24df09d2b5ce453734d4d6d1b3d1012d628d.tar.gz
gnu: file: Fixed cross-compilation.
* gnu/packages/file.scm (file): [(eq? (%current-target-system) #f)] Add native-inputs. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/file.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/packages/file.scm b/gnu/packages/file.scm
index 1e09fb7f18..63a9df4a9a 100644
--- a/gnu/packages/file.scm
+++ b/gnu/packages/file.scm
@@ -34,6 +34,9 @@
(sha256 (base32
"08ix4xrvan0k80n0l5lqfmc4azjv5lyhvhwdxny4r09j5smhv78r"))))
(build-system gnu-build-system)
+ (native-inputs
+ ;; This package depends upon a native install of itself.
+ (if (%current-target-system) `(("file" ,file)) '() ))
(synopsis "file, a file type guesser")
(description
"The file command is a file type guesser, a command-line tool that tells