2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, bash, cabextract, curl, gnupg, libX11, libGLU, libGL, wine-staging }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
wine_custom = wine-staging;
|
|
|
|
|
|
|
|
mozillaPluginPath = "/lib/mozilla/plugins";
|
|
|
|
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
version = "0.2.8.2";
|
|
|
|
|
|
|
|
pname = "pipelight";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://bitbucket.org/mmueller2012/pipelight/get/v${version}.tar.gz";
|
|
|
|
sha256 = "1kyy6knkr42k34rs661r0f5sf6l1s2jdbphdg89n73ynijqmzjhk";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ wine_custom libX11 libGLU libGL curl ];
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = [ "-fpermissive" ];
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
patches = [
|
|
|
|
./pipelight.patch
|
|
|
|
./wine-6.13-new-args.patch
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
patchShebangs .
|
|
|
|
./configure \
|
|
|
|
--prefix=$out \
|
|
|
|
--moz-plugin-path=$out/${mozillaPluginPath} \
|
|
|
|
--wine-path=${wine_custom} \
|
|
|
|
--gpg-exec=${gnupg}/bin/gpg \
|
|
|
|
--bash-interp=${bash}/bin/bash \
|
|
|
|
--downloader=${curl.bin}/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/";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = with lib.licenses; [ mpl11 gpl2 lgpl21 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A wrapper for using Windows plugins in Linux browsers";
|
2021-01-15 22:18:51 +00:00
|
|
|
maintainers = with lib.maintainers; [ skeidel ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = [ "x86_64-linux" "i686-linux" ];
|
|
|
|
};
|
|
|
|
}
|