2015-05-10 13:32:35 +03:00
|
|
|
{ stdenv, fetchurl, fetchgit, autoconf, automake, wineStaging, perl, xlibs
|
2015-05-12 18:28:06 +03:00
|
|
|
, gnupg, gcc_multi, mesa, curl, bash, cacert, cabextract, utillinux, attr
|
2014-10-17 15:33:25 +04:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2015-05-10 13:32:35 +03:00
|
|
|
wine_custom = wineStaging;
|
2014-10-17 15:33:25 +04:00
|
|
|
|
|
|
|
mozillaPluginPath = "/lib/mozilla/plugins";
|
|
|
|
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
|
2014-12-21 20:19:25 +03:00
|
|
|
version = "0.2.8";
|
2014-10-17 15:33:25 +04:00
|
|
|
|
|
|
|
name = "pipelight-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://bitbucket.org/mmueller2012/pipelight/get/v${version}.tar.gz";
|
2014-12-21 20:19:25 +03:00
|
|
|
sha256 = "1i440rf22fmd2w86dlm1mpi3nb7410rfczc0yldnhgsvp5p3sm5f";
|
2014-10-17 15:33:25 +04:00
|
|
|
};
|
|
|
|
|
2015-05-12 18:28:06 +03:00
|
|
|
buildInputs = [ wine_custom xlibs.libX11 gcc_multi mesa curl ];
|
2014-10-17 15:33:25 +04:00
|
|
|
propagatedbuildInputs = [ curl cabextract ];
|
|
|
|
|
|
|
|
patches = [ ./pipelight.patch ];
|
|
|
|
|
|
|
|
configurePhase = ''
|
2014-10-18 00:13:26 +04:00
|
|
|
patchShebangs .
|
2014-10-17 15:33:25 +04:00
|
|
|
./configure \
|
|
|
|
--prefix=$out \
|
|
|
|
--moz-plugin-path=$out/${mozillaPluginPath} \
|
|
|
|
--wine-path=${wine_custom} \
|
|
|
|
--gpg-exec=${gnupg}/bin/gpg2 \
|
|
|
|
--bash-interp=${bash}/bin/bash \
|
|
|
|
--downloader=${curl}/bin/curl
|
|
|
|
$configureFlags
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
mozillaPlugin = mozillaPluginPath;
|
|
|
|
wine = wine_custom;
|
|
|
|
};
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
$out/bin/pipelight-plugin --create-mozilla-plugins
|
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
substituteInPlace $out/share/pipelight/install-dependency \
|
|
|
|
--replace cabextract ${cabextract}/bin/cabextract
|
|
|
|
'';
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://pipelight.net/";
|
2015-04-21 19:05:19 +03:00
|
|
|
license = with stdenv.lib.licenses; [ mpl11 gpl2 lgpl21 ];
|
2014-10-17 15:33:25 +04:00
|
|
|
description = "A wrapper for using Windows plugins in Linux browsers";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [skeidel];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|