nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 68 lines 1.2 kB view raw
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, gnome 15, gdk-pixbuf 16}: 17 18stdenv.mkDerivation rec { 19 pname = "cog"; 20 version = "0.8.1"; 21 22 src = fetchFromGitHub { 23 owner = "igalia"; 24 repo = "cog"; 25 rev = "v${version}"; 26 sha256 = "sha256-eF7rvOjZntcMmn622342yqfp4ksZ6R/FFBT36bYCViE="; 27 }; 28 29 buildInputs = [ 30 wayland-protocols 31 wayland 32 libwpe 33 libwpe-fdo 34 webkitgtk 35 glib-networking 36 gdk-pixbuf 37 gnome.adwaita-icon-theme 38 ]; 39 40 nativeBuildInputs = [ 41 cmake 42 pkg-config 43 wayland 44 makeWrapper 45 wrapGAppsHook 46 ]; 47 48 depsBuildsBuild = [ 49 pkg-config 50 ]; 51 52 cmakeFlags = [ 53 "-DCOG_USE_WEBKITGTK=ON" 54 ]; 55 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 ''; 61 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 }; 68}