Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, fetchFromGitHub 4, libX11 5, libXi 6, libXrandr 7, txt2man 8}: 9 10stdenv.mkDerivation rec { 11 pname = "xlibinput-calibrator"; 12 version = "0.11"; 13 14 src = fetchFromGitHub { 15 owner = "kreijack"; 16 repo = "xlibinput_calibrator"; 17 rev = "v${version}"; 18 hash = "sha256-MvlamN8WSER0zN9Ru3Kr2MFARD9s7PYKkRtyD8s6ZPI="; 19 }; 20 21 nativeBuildInputs = [ 22 txt2man 23 ]; 24 25 buildInputs = [ 26 libX11 27 libXi 28 libXrandr 29 ]; 30 31 installFlags = [ "prefix=$(out)" ]; 32 33 enableParallelBuilding = true; 34 35 meta = with lib; { 36 description = "Touch calibrator for libinput"; 37 homepage = "https://github.com/kreijack/xlibinput_calibrator"; 38 changelog = "https://github.com/kreijack/xlibinput_calibrator/blob/${src.rev}/Changelog"; 39 license = with licenses; [ mit ]; 40 maintainers = with maintainers; [ atemu ]; 41 }; 42}