nixpkgs/pkgs/development/web/cog/default.nix

69 lines
1.2 KiB
Nix
Raw Normal View History

2020-08-24 06:53:31 +02:00
{ stdenv
, lib
, fetchFromGitHub
, cmake
, pkg-config
, wayland
, wayland-protocols
, libwpe
, libwpe-fdo
, glib-networking
, webkitgtk
, makeWrapper
, wrapGAppsHook
, gnome3
, gdk-pixbuf
}:
stdenv.mkDerivation rec {
pname = "cog";
2021-01-21 14:40:25 +01:00
version = "0.8.0";
2020-08-24 06:53:31 +02:00
src = fetchFromGitHub {
owner = "igalia";
repo = "cog";
rev = "v${version}";
2021-01-21 14:40:25 +01:00
sha256 = "sha256-E6rACj25rdV5dww91PzYEX1r2A9YLNgAVyiYceP1KI8=";
2020-08-24 06:53:31 +02:00
};
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;
};
}