mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 18:12:46 +00:00
e34ce9d1c5
This release in a RC for gnupg-2.2. The main difference as far as nixpkgs is concerned is that the binary `gpg2` is now called `gpg` and `gpgv2` is called `gpgv`. This update fixed all explicit use of `gpg2` and `gpgv2` across nixpkgs, but there might be some packaged software that internally use `gpg2` not handeled by this commit. See http://lists.gnu.org/archive/html/info-gnu/2017-08/msg00001.html for full release information
63 lines
1.5 KiB
Nix
63 lines
1.5 KiB
Nix
{ stdenv, fetchurl, bash, cabextract, curl, gnupg, libX11, mesa, perl, wineStaging
|
|
}:
|
|
|
|
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 libX11 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/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 = with stdenv.lib.platforms; linux;
|
|
};
|
|
}
|