Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
78 lines
1.4 KiB
Nix
78 lines
1.4 KiB
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
pkg-config,
|
|
wayland,
|
|
wayland-protocols,
|
|
libwpe,
|
|
libwpe-fdo,
|
|
glib-networking,
|
|
webkitgtk_4_0,
|
|
makeWrapper,
|
|
wrapGAppsHook3,
|
|
adwaita-icon-theme,
|
|
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_4_0
|
|
glib-networking
|
|
gdk-pixbuf
|
|
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 = "Small single “window” launcher for the WebKit WPE port";
|
|
homepage = "https://github.com/Igalia/cog";
|
|
mainProgram = "cog";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.matthewbauer ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|