Skip to content

Commit

Permalink
cog: init at 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewbauer committed Jan 20, 2021
1 parent 132f7e6 commit 914de3a
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 0 deletions.
70 changes: 70 additions & 0 deletions pkgs/development/web/cog/default.nix
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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12395,6 +12395,8 @@ in

cointop = callPackage ../applications/misc/cointop { };

cog = callPackage ../development/web/cog { };

ctl = callPackage ../development/libraries/ctl { };

ctpp2 = callPackage ../development/libraries/ctpp2 { };
Expand Down

0 comments on commit 914de3a

Please sign in to comment.