Give Org-Mode a high priority.

svn path=/nixpkgs/trunk/; revision=22694
This commit is contained in:
Ludovic Courtès 2010-07-22 08:59:46 +00:00
parent f497701642
commit c4d05c0e3e
2 changed files with 9 additions and 3 deletions

View file

@ -40,5 +40,9 @@ rec {
*/
lowPrio = drv: addMetaAttrs { priority = "10"; } drv;
/* Increase the nix-env priority of the package, i.e., this
version/variant of the package will be preferred.
*/
hiPrio = drv: addMetaAttrs { priority = "110"; } drv;
}

View file

@ -139,7 +139,7 @@ let
inherit lib config getConfig stdenvAdapters;
inherit (lib) lowPrio appendToName makeOverridable;
inherit (lib) lowPrio hiPrio appendToName makeOverridable;
# Applying this to an attribute set will cause nix-env to look
# inside the set for derivations.
@ -7838,9 +7838,11 @@ let
inherit fetchurl stdenv;
};
org = import ../applications/editors/emacs-modes/org {
# This is usually a newer version of Org-Mode than that found in GNU Emacs, so
# we want it to have higher precedence.
org = hiPrio (import ../applications/editors/emacs-modes/org {
inherit fetchurl stdenv emacs texinfo;
};
});
prologMode = import ../applications/editors/emacs-modes/prolog {
inherit fetchurl stdenv;