1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 22:20:51 +00:00
nixpkgs/pkgs/tools/misc/pipelight/default.nix
Ryan Mulligan 1e2c9fa78f pipelight: 0.2.8 -> 0.2.8.2
Semi-automatic update. These checks were done:

- built on NixOS
- ran `/nix/store/x1h0gya1nb2kxbvkcr8sivskx2kzycdr-pipelight-0.2.8.2/bin/pipelight-plugin --help` got 0 exit code
- ran `/nix/store/x1h0gya1nb2kxbvkcr8sivskx2kzycdr-pipelight-0.2.8.2/bin/pipelight-plugin --version` and found version 0.2.8.2
- found 0.2.8.2 with grep in /nix/store/x1h0gya1nb2kxbvkcr8sivskx2kzycdr-pipelight-0.2.8.2
- found 0.2.8.2 in filename of file in /nix/store/x1h0gya1nb2kxbvkcr8sivskx2kzycdr-pipelight-0.2.8.2
2018-03-09 09:05:51 -08:00

63 lines
1.5 KiB
Nix

{ stdenv, fetchurl, bash, cabextract, curl, gnupg, libX11, libGLU_combined, perl, wineStaging
}:
let
wine_custom = wineStaging;
mozillaPluginPath = "/lib/mozilla/plugins";
in stdenv.mkDerivation rec {
version = "0.2.8.2";
name = "pipelight-${version}";
src = fetchurl {
url = "https://bitbucket.org/mmueller2012/pipelight/get/v${version}.tar.gz";
sha256 = "1kyy6knkr42k34rs661r0f5sf6l1s2jdbphdg89n73ynijqmzjhk";
};
buildInputs = [ wine_custom libX11 libGLU_combined 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/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/;
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 = [ "x86_64-linux" "i686-linux" ];
};
}