nixpkgs/pkgs/by-name/lo/louvre/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

75 lines
1.2 KiB
Nix
Raw Normal View History

2023-11-22 17:21:08 +00:00
{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, pkg-config
, fontconfig
, icu
, libdrm
, libGL
, libinput
, libX11
, libXcursor
, libxkbcommon
, mesa
, pixman
, seatd
, srm-cuarzo
, udev
, wayland
, xorgproto
}:
stdenv.mkDerivation (self: {
pname = "louvre";
2024-09-12 04:32:44 +00:00
version = "2.9.0-1";
2023-11-22 17:21:08 +00:00
src = fetchFromGitHub {
owner = "CuarzoSoftware";
repo = "Louvre";
2024-09-12 04:32:44 +00:00
rev = "v${self.version}";
hash = "sha256-0M1Hl5kF8r4iFflkGBb9CWqwzauSZPVKSRNWZKFZC4U=";
2023-11-22 17:21:08 +00:00
};
2024-09-12 04:32:44 +00:00
sourceRoot = "${self.src.name}/src";
postPatch = ''
substituteInPlace examples/meson.build \
--replace-fail "/usr/local/share/wayland-sessions" "${placeholder "out"}/share/wayland-sessions"
'';
2023-11-22 17:21:08 +00:00
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" ];
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;
};
})