mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
dce85e24f8
cleanup
79 lines
1.3 KiB
Nix
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;
|
|
};
|
|
})
|