mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 01:23:03 +00:00
37 lines
1.0 KiB
Nix
37 lines
1.0 KiB
Nix
{stdenv, fetchurl, which, pkgconfig, file, glib, gtk2, gtk3, curl}:
|
|
let
|
|
srcData = # Generated upstream information
|
|
rec {
|
|
baseName="nspluginwrapper";
|
|
version="1.4.4";
|
|
name="${baseName}-${version}";
|
|
hash="1fxjz9ifhw0drm12havlsl4jpsq1nv930gqa005kgddv5pa99vgj";
|
|
url="http://nspluginwrapper.org/download/nspluginwrapper-1.4.4.tar.gz";
|
|
};
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
inherit(srcData) name version;
|
|
|
|
src = fetchurl{
|
|
inherit(srcData) url;
|
|
sha256 = srcData.hash;
|
|
};
|
|
|
|
preConfigure = ''
|
|
sed -e 's@/usr/bin/@@g' -i configure
|
|
sed -e '/gthread[.]h/d' -i src/npw-player.c
|
|
export configureFlags="$configureFlags --target-cpu=$(uname -m)"
|
|
'';
|
|
|
|
buildInputs = [which pkgconfig file glib gtk2 gtk3 curl];
|
|
|
|
meta = {
|
|
description = ''A wrapper to run browser plugins out-of-process'';
|
|
homepage = "http://nspluginwrapper.org/";
|
|
license = stdenv.lib.licenses.gpl2;
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
maintainers = with stdenv.lib.maintainer; [raskin];
|
|
inherit (srcData) version;
|
|
};
|
|
}
|