qt6Packages.waylib: 0.1.1 -> 0.3.0-alpha
This commit is contained in:
parent
9bca762c24
commit
6dc41785cf
@ -1,47 +1,32 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, lib
|
, lib
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, fetchpatch
|
|
||||||
, cmake
|
, cmake
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, wayland-scanner
|
, wayland-scanner
|
||||||
, wrapQtAppsHook
|
, wrapQtAppsHook
|
||||||
, qtbase
|
, qtbase
|
||||||
, qtquick3d
|
, qtdeclarative
|
||||||
, qwlroots
|
, qwlroots
|
||||||
, wayland
|
, wayland
|
||||||
, wayland-protocols
|
, wayland-protocols
|
||||||
, wlr-protocols
|
, wlr-protocols
|
||||||
, pixman
|
, pixman
|
||||||
, libdrm
|
, libdrm
|
||||||
, nixos-artwork
|
, libinput
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "waylib";
|
pname = "waylib";
|
||||||
version = "0.1.1";
|
version = "0.3.0-alpha";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "vioken";
|
owner = "vioken";
|
||||||
repo = "waylib";
|
repo = "waylib";
|
||||||
rev = finalAttrs.version;
|
rev = finalAttrs.version;
|
||||||
hash = "sha256-3IdrChuXQyQGhJ/7kTqmkV0PyuSNP53Y0Po01Fc9Qi0=";
|
hash = "sha256-5IWe8VFpLwDSja4to/ugVS80s5+bcAbM6/fg1HPP52Q=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
|
||||||
(fetchpatch {
|
|
||||||
name = "fix-build-on-qt-6_7.patch";
|
|
||||||
url = "https://github.com/vioken/waylib/commit/09875ebedb074089ec57e71cbc8d8011f555be70.patch";
|
|
||||||
hash = "sha256-ulXlLxn7TOlXSl4N5mjXCy3PJhxVeyDwbwKeV9J/FSI=";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace examples/tinywl/OutputDelegate.qml \
|
|
||||||
--replace "/usr/share/wallpapers/deepin/desktop.jpg" \
|
|
||||||
"${nixos-artwork.wallpapers.simple-blue}/share/backgrounds/nixos/nix-wallpaper-simple-blue.png"
|
|
||||||
'';
|
|
||||||
|
|
||||||
depsBuildBuild = [
|
depsBuildBuild = [
|
||||||
# To find wayland-scanner
|
# To find wayland-scanner
|
||||||
pkg-config
|
pkg-config
|
||||||
@ -51,36 +36,30 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
cmake
|
cmake
|
||||||
pkg-config
|
pkg-config
|
||||||
wayland-scanner
|
wayland-scanner
|
||||||
wrapQtAppsHook
|
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
qtbase
|
qtbase
|
||||||
qtquick3d
|
qtdeclarative
|
||||||
|
qwlroots
|
||||||
wayland
|
wayland
|
||||||
wayland-protocols
|
wayland-protocols
|
||||||
wlr-protocols
|
wlr-protocols
|
||||||
pixman
|
pixman
|
||||||
libdrm
|
libdrm
|
||||||
];
|
libinput
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
|
||||||
qwlroots
|
|
||||||
];
|
|
||||||
|
|
||||||
cmakeFlags = [
|
|
||||||
(lib.cmakeBool "INSTALL_TINYWL" true)
|
|
||||||
];
|
];
|
||||||
|
|
||||||
strictDeps = true;
|
strictDeps = true;
|
||||||
|
|
||||||
outputs = [ "out" "dev" "bin" ];
|
dontWrapQtApps = true;
|
||||||
|
|
||||||
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Wrapper for wlroots based on Qt";
|
description = "Wrapper for wlroots based on Qt";
|
||||||
homepage = "https://github.com/vioken/waylib";
|
homepage = "https://github.com/vioken/waylib";
|
||||||
license = with lib.licenses; [ gpl3Only lgpl3Only asl20 ];
|
license = with lib.licenses; [ gpl3Only lgpl3Only asl20 ];
|
||||||
outputsToInstall = [ "out" ];
|
|
||||||
platforms = lib.platforms.linux;
|
platforms = lib.platforms.linux;
|
||||||
maintainers = with lib.maintainers; [ rewine ];
|
maintainers = with lib.maintainers; [ rewine ];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user