Added mozplugger - an universal launching plugin for Mozilla programs
svn path=/nixpkgs/trunk/; revision=14009
This commit is contained in:
parent
264a6c709a
commit
d20bb02310
@ -0,0 +1,36 @@
|
|||||||
|
a :
|
||||||
|
let
|
||||||
|
fetchurl = a.fetchurl;
|
||||||
|
|
||||||
|
version = a.lib.getAttr ["version"] "1.12.0" a;
|
||||||
|
buildInputs = with a; [
|
||||||
|
firefox libX11 xproto
|
||||||
|
];
|
||||||
|
in
|
||||||
|
rec {
|
||||||
|
src = fetchurl {
|
||||||
|
url = "http://mozplugger.mozdev.org/files/mozplugger-${version}.tar.gz";
|
||||||
|
sha256 = "1vpggfmbv4h3srk80rgidd020i03hrkpb7cfxkwagkcd0zcal4hk";
|
||||||
|
};
|
||||||
|
|
||||||
|
inherit buildInputs;
|
||||||
|
configureFlags = [];
|
||||||
|
makeFlags = ["linux" "prefix=" "root=$out"];
|
||||||
|
|
||||||
|
preBuild = a.FullDepEntry(''
|
||||||
|
sed -e s@/usr/@"$out/"@g -i mozplugger.c
|
||||||
|
'') ["doUnpack" "minInit"];
|
||||||
|
|
||||||
|
postInstall = a.FullDepEntry(''
|
||||||
|
ensureDir $out/share/${name}/plugin
|
||||||
|
ln -s $out/lib/mozilla/plugins/mozplugger.so $out/share/${name}/plugin
|
||||||
|
'') ["doMakeInstall" "minInit" "defEnsureDir"];
|
||||||
|
|
||||||
|
/* doConfigure should be removed if not needed */
|
||||||
|
phaseNames = ["preBuild" "doMakeInstall" "postInstall"];
|
||||||
|
|
||||||
|
name = "mozplugger-" + version;
|
||||||
|
meta = {
|
||||||
|
description = "Mozilla plugin for launching external program for handling in-page objects";
|
||||||
|
};
|
||||||
|
}
|
@ -7770,6 +7770,11 @@ let
|
|||||||
inherit (xlibs) libXi;
|
inherit (xlibs) libXi;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mozplugger = builderDefsPackage (import ../applications/networking/browsers/mozilla-plugins/mozplugger) {
|
||||||
|
inherit firefox;
|
||||||
|
inherit (xlibs) libX11 xproto;
|
||||||
|
};
|
||||||
|
|
||||||
mpg321 = import ../applications/audio/mpg321 {
|
mpg321 = import ../applications/audio/mpg321 {
|
||||||
inherit stdenv fetchurl libao libmad libid3tag zlib;
|
inherit stdenv fetchurl libao libmad libid3tag zlib;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user