mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
Merge pull request #8920 from joachifm/fix-mozplugger
mozplugger: 1.12.0 -> 2.1.6
This commit is contained in:
commit
c235eb2ffe
@ -1,36 +1,30 @@
|
||||
a :
|
||||
let
|
||||
fetchurl = a.fetchurl;
|
||||
{ stdenv, fetchurl, firefox, libX11, xproto }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "mozplugger-${version}";
|
||||
version = "2.1.6";
|
||||
|
||||
version = a.lib.attrByPath ["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";
|
||||
sha256 = "1vszkq4kdbaxsrqr2xn9rq6ipza9fngdri79gvjqk3bvsdmg0k19";
|
||||
};
|
||||
|
||||
inherit buildInputs;
|
||||
configureFlags = [];
|
||||
makeFlags = ["linux" "prefix=" "root=$out"];
|
||||
buildInputs = [ firefox libX11 xproto ];
|
||||
|
||||
preBuild = a.fullDepEntry(''
|
||||
sed -e s@/usr/@"$out/"@g -i mozplugger.c
|
||||
'') ["doUnpack" "minInit"];
|
||||
installPhase = ''
|
||||
mkdir -p "$out/etc" "$out/bin" "$out/lib/mozilla/plugins" "$out/share/man/man7"
|
||||
cp mozpluggerrc "$out/etc"
|
||||
cp mozplugger-{helper,controller,linker,update} "$out/bin"
|
||||
cp mozplugger.so "$out/lib/mozilla/plugins"
|
||||
cp mozplugger.7 "$out/share/man/man7"
|
||||
|
||||
postInstall = a.fullDepEntry(''
|
||||
mkdir -p $out/share/${name}/plugin
|
||||
ln -s $out/lib/mozilla/plugins/mozplugger.so $out/share/${name}/plugin
|
||||
'') ["doMakeInstall" "minInit" "defEnsureDir"];
|
||||
mkdir -p "$out/share/${name}/plugin"
|
||||
ln -s "$out/lib/mozilla/plugins/mozplugger.so" "$out/share/${name}/plugin"
|
||||
'';
|
||||
|
||||
/* 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";
|
||||
homepage = http://mozplugger.mozdev.org/;
|
||||
license = stdenv.lib.licenses.gpl2Plus;
|
||||
};
|
||||
}
|
||||
|
@ -12038,8 +12038,7 @@ let
|
||||
|
||||
mopidy-mopify = callPackage ../applications/audio/mopidy-mopify { };
|
||||
|
||||
mozplugger = builderDefsPackage (import ../applications/networking/browsers/mozilla-plugins/mozplugger) {
|
||||
inherit firefox;
|
||||
mozplugger = callPackage ../applications/networking/browsers/mozilla-plugins/mozplugger {
|
||||
inherit (xlibs) libX11 xproto;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user