Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / web / cog / default.nix
blob5344c1b833ca05086b0f24f6a5d09a4243bdffd6
1 { stdenv
2 , lib
3 , fetchFromGitHub
4 , cmake
5 , pkg-config
6 , wayland
7 , wayland-protocols
8 , libwpe
9 , libwpe-fdo
10 , glib-networking
11 , webkitgtk
12 , makeWrapper
13 , wrapGAppsHook
14 , gnome3
15 , gdk-pixbuf
18 stdenv.mkDerivation rec {
19   pname = "cog";
20   version = "0.8.0";
22   src = fetchFromGitHub {
23     owner = "igalia";
24     repo = "cog";
25     rev = "v${version}";
26     sha256 = "sha256-E6rACj25rdV5dww91PzYEX1r2A9YLNgAVyiYceP1KI8=";
27   };
29   buildInputs = [
30     wayland-protocols
31     wayland
32     libwpe
33     libwpe-fdo
34     webkitgtk
35     glib-networking
36     gdk-pixbuf
37     gnome3.adwaita-icon-theme
38   ];
40   nativeBuildInputs = [
41     cmake
42     pkg-config
43     wayland
44     makeWrapper
45     wrapGAppsHook
46   ];
48   depsBuildsBuild = [
49     pkg-config
50   ];
52   cmakeFlags = [
53     "-DCOG_USE_WEBKITGTK=ON"
54   ];
56   # not ideal, see https://github.com/WebPlatformForEmbedded/libwpe/issues/59
57   preFixup = ''
58     wrapProgram $out/bin/cog \
59       --prefix LD_LIBRARY_PATH : ${libwpe-fdo}/lib
60   '';
62   meta = with lib; {
63     description = "A small single “window” launcher for the WebKit WPE port";
64     license = licenses.mit;
65     maintainers = [ maintainers.matthewbauer ];
66     platforms = platforms.linux;
67   };