summary refs log tree commit diff
path: root/pkgs/development/tools/misc/texinfo
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-02-27 17:35:42 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-02-27 17:35:42 +0000
commitfca769846a4ba4f517f7c60bb1e4cec31c7e38dc (patch)
treebf4770c1d01ae0dc9809c089bfa437e600bf8bb6 /pkgs/development/tools/misc/texinfo
parent5ca75ac27653307f0982a264a34bdcb7402ecde4 (diff)
downloadnixlib-fca769846a4ba4f517f7c60bb1e4cec31c7e38dc.tar
nixlib-fca769846a4ba4f517f7c60bb1e4cec31c7e38dc.tar.gz
nixlib-fca769846a4ba4f517f7c60bb1e4cec31c7e38dc.tar.bz2
nixlib-fca769846a4ba4f517f7c60bb1e4cec31c7e38dc.tar.lz
nixlib-fca769846a4ba4f517f7c60bb1e4cec31c7e38dc.tar.xz
nixlib-fca769846a4ba4f517f7c60bb1e4cec31c7e38dc.tar.zst
nixlib-fca769846a4ba4f517f7c60bb1e4cec31c7e38dc.zip
Adding a new special attribute for mkDerivation: crossAttrs. It sits next to
"meta" and "passthru", and these attributes will be appended to the usual
mkDerivation attributes only if the package is cross built.
This allows putting some of the cross-building logic in the mkDerivation
nix parameters, and not only in the final builder script, as it was until now.

svn path=/nixpkgs/trunk/; revision=20272
Diffstat (limited to 'pkgs/development/tools/misc/texinfo')
-rw-r--r--pkgs/development/tools/misc/texinfo/default.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/tools/misc/texinfo/default.nix b/pkgs/development/tools/misc/texinfo/default.nix
index c9bf4eea4053..09fe6ed029c3 100644
--- a/pkgs/development/tools/misc/texinfo/default.nix
+++ b/pkgs/development/tools/misc/texinfo/default.nix
@@ -10,6 +10,15 @@ stdenv.mkDerivation rec {
 
   buildInputs = [ ncurses lzma ];
 
+  # !!! This should be set as usual attributes - we set them as
+  # crossAttrs only not to change the usual stdenv hash
+  # (in the normal stdenv, these get mapped all to buildNativeInputs,
+  #  but unfortunately in the opposite order, thus getting a new hash)
+  crossAttrs = {
+    buildNativeInputs = [ lzma ];
+    buildInputs = [ ncurses ];
+  };
+
   # Disabled because we don't have zdiff in the stdenv bootstrap.
   #doCheck = true;