Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, cmake, pkg-config }: 2stdenv.mkDerivation rec { 3 pname = "libuinputplus"; 4 version = "2021-04-02"; 5 6 # adds missing cmake install directives 7 # https://github.com/YukiWorkshop/libuInputPlus/pull/7 8 patches = [ ./0001-Add-cmake-install-directives.patch]; 9 10 src = fetchFromGitHub { 11 owner = "YukiWorkshop"; 12 repo = "libuInputPlus"; 13 rev = "f7f18eb339bba61a43f2cad481a9b1a453a66957"; 14 sha256 = "0sind2ghhy4h9kfkr5hsmhcq0di4ifwqyv4gac96rgj5mwvs33lp"; 15 }; 16 17 nativeBuildInputs = [ cmake pkg-config ]; 18 19 meta = with lib; { 20 inherit (src.meta) homepage; 21 description = "Easy-to-use uinput library in C++"; 22 license = licenses.mit; 23 maintainers = with maintainers; [ willibutz ]; 24 platforms = with platforms; linux; 25 }; 26}