nixpkgs/pkgs/applications/networking/browsers/firefox-wrapper/default.nix
Yury G. Kudryashov 7aea2477a1 Added possibility to make suffixed wrapped firefoxes. Yes, to have beta&release at once.
svn path=/nixpkgs/branches/stdenv-updates/; revision=9884
2007-12-08 01:08:29 +00:00

26 lines
660 B
Nix

args: with args;
stdenv.mkDerivation {
name = firefox.name + "-with-plugins";
builder = ./builder.sh;
makeWrapper = ../../../../build-support/make-wrapper/make-wrapper.sh;
inherit firefox;
nameSuffix = (if args ? nameSuffix then args.nameSuffix else "");
# Let each plugin tell us (through its `mozillaPlugin') attribute
# where to find the plugin in its tree.
plugins = map (x: x + x.mozillaPlugin) plugins;
meta = {
description =
firefox.meta.description
+ " (with plugins: "
+ (let lib = import ../../../../lib;
in lib.concatStrings (lib.intersperse ", " (map (x: x.name) plugins)))
+ ")";
};
}