waffle: 1.6.1 -> 1.7.0
This commit is contained in:
parent
90a9906637
commit
659c7dce17
@ -1,36 +1,34 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, fetchFromGitLab
|
, fetchFromGitLab
|
||||||
, lib
|
, lib
|
||||||
|
, cmake
|
||||||
, meson
|
, meson
|
||||||
, ninja
|
, ninja
|
||||||
|
, bash-completion
|
||||||
, libGL
|
, libGL
|
||||||
, libglvnd ? null
|
, libglvnd
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, python3
|
, python3
|
||||||
, x11Support ? true, libxcb ? null, libX11 ? null
|
, x11Support ? true, libxcb, libX11
|
||||||
, waylandSupport ? true, wayland ? null
|
, waylandSupport ? true, wayland, wayland-protocols
|
||||||
, useGbm ? true, mesa ? null, libudev ? null
|
, useGbm ? true, mesa, udev
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert x11Support -> (libxcb != null && libX11 != null);
|
|
||||||
assert waylandSupport -> wayland != null;
|
|
||||||
assert useGbm -> (mesa != null && libudev != null);
|
|
||||||
assert with stdenv.hostPlatform; isUnix && !isDarwin -> libglvnd != null;
|
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "waffle";
|
pname = "waffle";
|
||||||
version = "1.6.1";
|
version = "1.7.0";
|
||||||
|
|
||||||
src = fetchFromGitLab {
|
src = fetchFromGitLab {
|
||||||
domain = "gitlab.freedesktop.org";
|
domain = "gitlab.freedesktop.org";
|
||||||
owner = "mesa";
|
owner = "mesa";
|
||||||
repo = "waffle";
|
repo = "waffle";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "0s8gislmhccfa04zsj1yqk97lscbbnmxirr2zm4q3p8ybmpfhpqr";
|
sha256 = "iY+dAgXutD/uDFocwd9QXjq502IOsk+3RQMA2S/CMV4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
|
bash-completion
|
||||||
libGL
|
libGL
|
||||||
] ++ lib.optionals (with stdenv.hostPlatform; isUnix && !isDarwin) [
|
] ++ lib.optionals (with stdenv.hostPlatform; isUnix && !isDarwin) [
|
||||||
libglvnd
|
libglvnd
|
||||||
@ -39,19 +37,25 @@ stdenv.mkDerivation rec {
|
|||||||
libxcb
|
libxcb
|
||||||
] ++ lib.optionals waylandSupport [
|
] ++ lib.optionals waylandSupport [
|
||||||
wayland
|
wayland
|
||||||
|
wayland-protocols
|
||||||
] ++ lib.optionals useGbm [
|
] ++ lib.optionals useGbm [
|
||||||
|
udev
|
||||||
mesa
|
mesa
|
||||||
libudev
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
dontUseCmakeConfigure = true;
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
cmake
|
||||||
|
makeWrapper
|
||||||
meson
|
meson
|
||||||
ninja
|
ninja
|
||||||
makeWrapper
|
|
||||||
pkg-config
|
pkg-config
|
||||||
python3
|
python3
|
||||||
];
|
];
|
||||||
|
|
||||||
|
PKG_CONFIG_BASH_COMPLETION_COMPLETIONSDIR= "${placeholder "out"}/share/bash-completion/completions";
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
wrapProgram $out/bin/wflinfo \
|
wrapProgram $out/bin/wflinfo \
|
||||||
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libGL libglvnd ]}
|
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [ libGL libglvnd ]}
|
||||||
|
Loading…
Reference in New Issue
Block a user