diff options
author | Eelco Dolstra | 2006-03-10 16:12:46 +0000 |
---|---|---|
committer | Eelco Dolstra | 2006-03-10 16:12:46 +0000 |
commit | baec8f5b38e83a456eebdf742834efc2c22386c6 (patch) | |
tree | ecd654568b44dba0a8a0fb0c6abebbc7b1c5feda /pkgs/build-support/gcc-cross-wrapper/default.nix | |
parent | 4c63a4a97a56d992ccc83e77ce477d3b22906240 (diff) |
* stdenv.mkDerivation now takes an optional attribute "meta" that
contains arbitrary information about a package, like this: meta = { homepage = "http://gcc.gnu.org/"; license = "GPL/LGPL"; description = "GNU Compiler Collection, 4.0.x"; }; The "meta" attribute is not passed to the actual derivation operation, so it's not a dependency --- changes to "meta" attributes don't trigger a recompilation. Now we have to standardise some useful attributes ;-) svn path=/nixpkgs/branches/usability/; revision=5024
Diffstat (limited to 'pkgs/build-support/gcc-cross-wrapper/default.nix')
-rw-r--r-- | pkgs/build-support/gcc-cross-wrapper/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/build-support/gcc-cross-wrapper/default.nix b/pkgs/build-support/gcc-cross-wrapper/default.nix index 0ceab44ee27c..09f7f006928e 100644 --- a/pkgs/build-support/gcc-cross-wrapper/default.nix +++ b/pkgs/build-support/gcc-cross-wrapper/default.nix @@ -27,4 +27,7 @@ stdenv.mkDerivation { langCC = if nativeTools then true else gcc.langCC; langF77 = if nativeTools then false else gcc.langF77; shell = if shell == "" then stdenv.shell else shell; + meta = if gcc != null then gcc.meta else + { description = "System C compiler wrapper"; + }; } |