forked from mirrors/nixpkgs
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
69 lines
1.6 KiB
Nix
69 lines
1.6 KiB
Nix
{ lib, stdenv, fetchdarcs, pythonPackages, libvncserver, zlib
|
|
, gnutls, libvpx, makeDesktopItem, mkDerivationWith }:
|
|
|
|
mkDerivationWith pythonPackages.buildPythonApplication rec {
|
|
|
|
pname = "blink";
|
|
version = "3.2.0";
|
|
|
|
src = fetchdarcs {
|
|
url = "http://devel.ag-projects.com/repositories/blink-qt";
|
|
rev = "release-${version}";
|
|
sha256 = "19rcwr5scw48qnj79q1pysw95fz9h98nyc3161qy2kph5g7dwkc3";
|
|
};
|
|
|
|
patches = [ ./pythonpath.patch ];
|
|
postPatch = ''
|
|
sed -i 's|@out@|'"''${out}"'|g' blink/resources.py
|
|
'';
|
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
|
pyqt5_with_qtwebkit
|
|
cjson
|
|
sipsimple
|
|
twisted
|
|
google_api_python_client
|
|
];
|
|
|
|
buildInputs = [
|
|
pythonPackages.cython
|
|
zlib
|
|
libvncserver
|
|
libvpx
|
|
];
|
|
|
|
desktopItem = makeDesktopItem {
|
|
name = "Blink";
|
|
exec = "blink";
|
|
comment = meta.description;
|
|
desktopName = "Blink";
|
|
icon = "blink";
|
|
genericName = "Instant Messaging";
|
|
categories = "Internet;";
|
|
};
|
|
|
|
dontWrapQtApps = true;
|
|
|
|
postInstall = ''
|
|
mkdir -p "$out/share/applications"
|
|
mkdir -p "$out/share/pixmaps"
|
|
cp "$desktopItem"/share/applications/* "$out/share/applications"
|
|
cp "$out"/share/blink/icons/blink.* "$out/share/pixmaps"
|
|
'';
|
|
|
|
preFixup = ''
|
|
makeWrapperArgs+=(
|
|
--prefix "LD_LIBRARY_PATH" ":" "${gnutls.out}/lib"
|
|
"''${qtWrapperArgs[@]}"
|
|
)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "http://icanblink.com/";
|
|
description = "A state of the art, easy to use SIP client for Voice, Video and IM";
|
|
platforms = platforms.linux;
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ pSub ];
|
|
};
|
|
}
|