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.

80 lines
1.3 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
2024-09-12 04:34:46 +00:00
, nix-update-script
2023-11-22 17:21:08 +00:00
}:
2024-09-12 04:34:46 +00:00
stdenv.mkDerivation (finalAttrs: {
2023-11-22 17:21:08 +00:00
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:34:46 +00:00
rev = "v${finalAttrs.version}";
2024-09-12 04:32:44 +00:00
hash = "sha256-0M1Hl5kF8r4iFflkGBb9CWqwzauSZPVKSRNWZKFZC4U=";
2023-11-22 17:21:08 +00:00
};
2024-09-12 04:34:46 +00:00
sourceRoot = "${finalAttrs.src.name}/src";
2024-09-12 04:32:44 +00:00
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" ];
2024-09-12 04:34:46 +00:00
passthru = {
updateScript = nix-update-script { };
};
2023-11-22 17:21:08 +00:00
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;
};
})