1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
{ stdenv
, lib
, fetchFromGitHub
, cmake
, pkg-config
, wayland
, wayland-protocols
, libwpe
, libwpe-fdo
, glib-networking
, webkitgtk
, makeWrapper
, wrapGAppsHook3
, gnome
, gdk-pixbuf
}:
stdenv.mkDerivation rec {
pname = "cog";
version = "0.8.1";
src = fetchFromGitHub {
owner = "igalia";
repo = "cog";
rev = "v${version}";
sha256 = "sha256-eF7rvOjZntcMmn622342yqfp4ksZ6R/FFBT36bYCViE=";
};
buildInputs = [
wayland-protocols
wayland
libwpe
libwpe-fdo
webkitgtk
glib-networking
gdk-pixbuf
gnome.adwaita-icon-theme
];
nativeBuildInputs = [
cmake
pkg-config
wayland
makeWrapper
wrapGAppsHook3
];
depsBuildsBuild = [
pkg-config
];
cmakeFlags = [
"-DCOG_USE_WEBKITGTK=ON"
];
# https://github.com/Igalia/cog/issues/438
postPatch = ''
substituteInPlace core/cogcore.pc.in \
--replace '$'{prefix}/@CMAKE_INSTALL_LIBDIR@ @CMAKE_INSTALL_FULL_LIBDIR@
'';
# not ideal, see https://github.com/WebPlatformForEmbedded/libwpe/issues/59
preFixup = ''
wrapProgram $out/bin/cog \
--prefix LD_LIBRARY_PATH : ${libwpe-fdo}/lib
'';
meta = with lib; {
description = "A small single “window” launcher for the WebKit WPE port";
license = licenses.mit;
maintainers = [ maintainers.matthewbauer ];
platforms = platforms.linux;
};
}
|