2021-01-15 09:19:50 +00:00
|
|
|
{ lib, stdenv, fetchurl, bash, cabextract, curl, gnupg, libX11, libGLU, libGL, wine-staging }:
|
2014-10-17 11:33:25 +00:00
|
|
|
|
|
|
|
let
|
2018-07-22 02:03:24 +00:00
|
|
|
wine_custom = wine-staging;
|
2014-10-17 11:33:25 +00:00
|
|
|
|
|
|
|
mozillaPluginPath = "/lib/mozilla/plugins";
|
|
|
|
|
|
|
|
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
|
2018-03-09 17:05:51 +00:00
|
|
|
version = "0.2.8.2";
|
2014-10-17 11:33:25 +00:00
|
|
|
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "pipelight";
|
2014-10-17 11:33:25 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://bitbucket.org/mmueller2012/pipelight/get/v${version}.tar.gz";
|
2018-03-09 17:05:51 +00:00
|
|
|
sha256 = "1kyy6knkr42k34rs661r0f5sf6l1s2jdbphdg89n73ynijqmzjhk";
|
2014-10-17 11:33:25 +00:00
|
|
|
};
|
|
|
|
|
2019-11-10 16:44:34 +00:00
|
|
|
buildInputs = [ wine_custom libX11 libGLU libGL curl ];
|
2015-11-16 14:02:54 +00:00
|
|
|
|
2023-02-19 19:23:32 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = toString [ "-fpermissive" ];
|
2014-10-17 11:33:25 +00:00
|
|
|
|
2021-07-26 10:44:38 +00:00
|
|
|
patches = [
|
|
|
|
./pipelight.patch
|
|
|
|
./wine-6.13-new-args.patch
|
2022-06-06 12:14:16 +00:00
|
|
|
# https://source.winehq.org/git/wine.git/commit/cf4a781e987a98a8d48610362a20a320c4a1016d
|
|
|
|
# adds ControlMask as a static variable.
|
|
|
|
./wine-7.10-ControlMask.patch
|
2021-07-26 10:44:38 +00:00
|
|
|
];
|
2014-10-17 11:33:25 +00:00
|
|
|
|
|
|
|
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 = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://pipelight.net/";
|
2021-01-15 09:19:50 +00:00
|
|
|
license = with lib.licenses; [ mpl11 gpl2 lgpl21 ];
|
2014-10-17 11:33:25 +00:00
|
|
|
description = "A wrapper for using Windows plugins in Linux browsers";
|
2021-01-15 09:19:50 +00:00
|
|
|
maintainers = with 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
|
|
|
};
|
|
|
|
}
|