3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/pipelight/default.nix
Vladimír Čunát 88c9f8b574 xlibs: replace occurrences by xorg
This seems to have been confusing people, using both xlibs and xorg, etc.
- Avoided renaming local (and different) xlibs binding in gcc*.
- Fixed cases where both xorg and xlibs were used.
Hopefully everything still works as before.
2015-09-15 12:54:34 +02:00

63 lines
1.6 KiB
Nix

{ stdenv, fetchurl, fetchgit, autoconf, automake, wineStaging, perl, xorg
, gnupg, gcc_multi, mesa, curl, bash, cacert, cabextract, utillinux, attr
}:
let
wine_custom = wineStaging;
mozillaPluginPath = "/lib/mozilla/plugins";
in stdenv.mkDerivation rec {
version = "0.2.8";
name = "pipelight-${version}";
src = fetchurl {
url = "https://bitbucket.org/mmueller2012/pipelight/get/v${version}.tar.gz";
sha256 = "1i440rf22fmd2w86dlm1mpi3nb7410rfczc0yldnhgsvp5p3sm5f";
};
buildInputs = [ wine_custom xorg.libX11 gcc_multi mesa curl ];
propagatedbuildInputs = [ curl cabextract ];
patches = [ ./pipelight.patch ];
configurePhase = ''
patchShebangs .
./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/";
license = with stdenv.lib.licenses; [ mpl11 gpl2 lgpl21 ];
description = "A wrapper for using Windows plugins in Linux browsers";
maintainers = with stdenv.lib.maintainers; [skeidel];
platforms = with stdenv.lib.platforms; linux;
};
}