depot/third_party/nixpkgs/pkgs/by-name/lo/louvre/package.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

79 lines
1.3 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, pkg-config
, fontconfig
, icu
, libdrm
, libGL
, libinput
, libX11
, libXcursor
, libxkbcommon
, mesa
, pixman
, seatd
, srm-cuarzo
, udev
, wayland
, xorgproto
, nix-update-script
}:
stdenv.mkDerivation (finalAttrs: {
pname = "louvre";
version = "2.9.0-1";
src = fetchFromGitHub {
owner = "CuarzoSoftware";
repo = "Louvre";
rev = "v${finalAttrs.version}";
hash = "sha256-0M1Hl5kF8r4iFflkGBb9CWqwzauSZPVKSRNWZKFZC4U=";
};
sourceRoot = "${finalAttrs.src.name}/src";
postPatch = ''
substituteInPlace examples/meson.build \
--replace-fail "/usr/local/share/wayland-sessions" "${placeholder "out"}/share/wayland-sessions"
'';
nativeBuildInputs = [
meson
ninja
pkg-config
];
buildInputs = [
fontconfig
icu
libdrm
libGL
libinput
libX11
libXcursor
libxkbcommon
mesa
pixman
seatd
srm-cuarzo
udev
wayland
xorgproto
];
outputs = [ "out" "dev" ];
passthru = {
updateScript = nix-update-script { };
};
meta = {
description = "C++ library for building Wayland compositors";
homepage = "https://github.com/CuarzoSoftware/Louvre";
mainProgram = "louvre-views";
maintainers = [ lib.maintainers.dblsaiko ];
platforms = lib.platforms.linux;
};
})