depot/third_party/nixpkgs/pkgs/development/libraries/libwacom/surface.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

41 lines
1.4 KiB
Nix

{ lib
, fetchFromGitHub
, libwacom
}:
let
libwacom-surface = fetchFromGitHub {
owner = "linux-surface";
repo = "libwacom-surface";
rev = "v2.10.0-1";
hash = "sha256-5/9X20veXazXEdSDGY5aMGQixulqMlC5Av0NGOF9m98=";
};
in libwacom.overrideAttrs (old: {
pname = "libwacom-surface";
# These patches will not be included upstream:
# https://github.com/linux-surface/libwacom/issues/2
patches = old.patches or [ ] ++ map (p: "${libwacom-surface}/patches/v2/${p}") [
"0001-Add-support-for-BUS_VIRTUAL.patch"
"0002-Add-support-for-Intel-Management-Engine-bus.patch"
"0003-data-Add-Microsoft-Surface-Pro-3.patch"
"0004-data-Add-Microsoft-Surface-Pro-4.patch"
"0005-data-Add-Microsoft-Surface-Pro-5.patch"
"0006-data-Add-Microsoft-Surface-Pro-6.patch"
"0007-data-Add-Microsoft-Surface-Pro-7.patch"
"0008-data-Add-Microsoft-Surface-Pro-7.patch"
"0009-data-Add-Microsoft-Surface-Pro-8.patch"
"0010-data-Add-Microsoft-Surface-Pro-9.patch"
"0011-data-Add-Microsoft-Surface-Book.patch"
"0012-data-Add-Microsoft-Surface-Book-2-13.5.patch"
"0013-data-Add-Microsoft-Surface-Book-2-15.patch"
"0014-data-Add-Microsoft-Surface-Book-3-13.5.patch"
"0015-data-Add-Microsoft-Surface-Book-3-15.patch"
"0016-data-Add-Microsoft-Surface-Laptop-Studio.patch"
];
meta = old.meta // {
homepage = "https://github.com/linux-surface/libwacom-surface";
maintainers = with lib.maintainers; [ dotlambda ];
};
})