forked from NixOS/nixpkgs
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request NixOS#96140 from matthewbauer/add-cog
Init cog at 0.6.0
- Loading branch information
Showing
5 changed files
with
171 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
{ stdenv | ||
, lib | ||
, fetchurl | ||
, meson | ||
, pkg-config | ||
, libxkbcommon | ||
, libGL | ||
, ninja | ||
, libX11 }: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "libwpe"; | ||
version = "1.7.1"; | ||
|
||
src = fetchurl { | ||
url = "https://wpewebkit.org/releases/${pname}-${version}.tar.xz"; | ||
sha256 = "0h6kh8wy2b370y705pl2vp6vp18dkdsgdxh0243ji2v51kxbg157"; | ||
}; | ||
|
||
nativeBuildInputs = [ | ||
pkg-config | ||
meson | ||
ninja | ||
]; | ||
|
||
buildInputs = [ | ||
libxkbcommon | ||
libGL | ||
libX11 | ||
]; | ||
|
||
meta = with lib; { | ||
description = "General-purpose library for WPE WebKit"; | ||
license = licenses.bsd2; | ||
homepage = "https://wpewebkit.org"; | ||
maintainers = with maintainers; [ matthewbauer ]; | ||
platforms = platforms.linux; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{ stdenv | ||
, lib | ||
, fetchurl | ||
, meson | ||
, pkg-config | ||
, ninja | ||
, wayland | ||
, epoxy | ||
, glib | ||
, libwpe | ||
, libxkbcommon | ||
, libGL | ||
, libX11 }: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "wpebackend-fdo"; | ||
version = "1.7.1"; | ||
|
||
src = fetchurl { | ||
url = "https://wpewebkit.org/releases/${pname}-${version}.tar.xz"; | ||
sha256 = "1xf6akagvpyh0nyxkfijrx5avp6ravnivy28dhk64dsfx9rhm64v"; | ||
}; | ||
|
||
depsBuildBuild = [ | ||
pkg-config | ||
]; | ||
|
||
nativeBuildInputs = [ | ||
pkg-config | ||
meson | ||
ninja | ||
wayland | ||
]; | ||
|
||
buildInputs = [ | ||
wayland | ||
epoxy | ||
glib | ||
libwpe | ||
libxkbcommon | ||
libGL | ||
libX11 | ||
]; | ||
|
||
meta = with lib; { | ||
description = "Freedesktop.org backend for WPE WebKit"; | ||
license = licenses.bsd2; | ||
homepage = "https://wpewebkit.org"; | ||
maintainers = with maintainers; [ matthewbauer ]; | ||
platforms = platforms.linux; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
{ stdenv | ||
, lib | ||
, fetchpatch | ||
, fetchFromGitHub | ||
, cmake | ||
, pkg-config | ||
, wayland | ||
, wayland-protocols | ||
, libwpe | ||
, libwpe-fdo | ||
, glib | ||
, glib-networking | ||
, webkitgtk | ||
, makeWrapper | ||
, wrapGAppsHook | ||
, gnome3 | ||
, gdk-pixbuf | ||
}: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "cog"; | ||
version = "0.6.0"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "igalia"; | ||
repo = "cog"; | ||
rev = "v${version}"; | ||
sha256 = "0a0zpdki1whm5gb6ycbazvwmm1fz094mkfwjfy4a7zz0pk54h1jw"; | ||
}; | ||
|
||
buildInputs = [ | ||
wayland-protocols | ||
wayland | ||
libwpe | ||
libwpe-fdo | ||
webkitgtk | ||
glib-networking | ||
gdk-pixbuf | ||
gnome3.adwaita-icon-theme | ||
]; | ||
|
||
nativeBuildInputs = [ | ||
cmake | ||
pkg-config | ||
wayland | ||
makeWrapper | ||
wrapGAppsHook | ||
]; | ||
|
||
depsBuildsBuild = [ | ||
pkg-config | ||
]; | ||
|
||
cmakeFlags = [ | ||
"-DCOG_USE_WEBKITGTK=ON" | ||
]; | ||
|
||
# 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; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters