2015-11-16 14:02:54 +00:00
|
|
|
{ stdenv, fetchurl, bash, cabextract, curl, gnupg, libX11, mesa, perl, wineStaging
|
|
|
|
}:
|
2014-10-17 11:33:25 +00:00
|
|
|
|
|
|
|
let
|
2015-05-10 10:32:35 +00:00
|
|
|
wine_custom = wineStaging;
|
2014-10-17 11:33:25 +00:00
|
|
|
|
|
|
|
mozillaPluginPath = "/lib/mozilla/plugins";
|
|
|
|
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
|
2014-12-21 17:19:25 +00:00
|
|
|
version = "0.2.8";
|
2014-10-17 11:33:25 +00:00
|
|
|
|
|
|
|
name = "pipelight-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://bitbucket.org/mmueller2012/pipelight/get/v${version}.tar.gz";
|
2014-12-21 17:19:25 +00:00
|
|
|
sha256 = "1i440rf22fmd2w86dlm1mpi3nb7410rfczc0yldnhgsvp5p3sm5f";
|
2014-10-17 11:33:25 +00:00
|
|
|
};
|
|
|
|
|
2015-11-16 14:02:54 +00:00
|
|
|
buildInputs = [ wine_custom libX11 mesa curl ];
|
|
|
|
|
2014-10-17 11:33:25 +00:00
|
|
|
propagatedbuildInputs = [ curl cabextract ];
|
|
|
|
|
|
|
|
patches = [ ./pipelight.patch ];
|
|
|
|
|
|
|
|
configurePhase = ''
|
2015-11-16 14:02:54 +00:00
|
|
|
patchShebangs .
|
2014-10-17 11:33:25 +00:00
|
|
|
./configure \
|
|
|
|
--prefix=$out \
|
|
|
|
--moz-plugin-path=$out/${mozillaPluginPath} \
|
|
|
|
--wine-path=${wine_custom} \
|
2017-08-10 09:43:48 +00:00
|
|
|
--gpg-exec=${gnupg}/bin/gpg \
|
2014-10-17 11:33:25 +00:00
|
|
|
--bash-interp=${bash}/bin/bash \
|
2015-10-06 13:32:17 +00:00
|
|
|
--downloader=${curl.bin}/bin/curl
|
2014-10-17 11:33:25 +00:00
|
|
|
$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 = {
|
2017-08-01 20:03:30 +00:00
|
|
|
homepage = http://pipelight.net/;
|
2015-04-21 16:05:19 +00:00
|
|
|
license = with stdenv.lib.licenses; [ mpl11 gpl2 lgpl21 ];
|
2014-10-17 11:33:25 +00:00
|
|
|
description = "A wrapper for using Windows plugins in Linux browsers";
|
2015-11-16 14:02:54 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ skeidel ];
|
2017-12-05 21:26:26 +00:00
|
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
2014-10-17 11:33:25 +00:00
|
|
|
};
|
|
|
|
}
|