Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at master 51 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitLab, 5 fetchpatch, 6 pkg-config, 7 cmake, 8 yaml-cpp, 9 libevdev, 10 udev, 11 boost, 12}: 13 14stdenv.mkDerivation rec { 15 pname = "interception-tools"; 16 version = "0.6.8"; 17 src = fetchFromGitLab { 18 owner = "interception/linux"; 19 repo = "tools"; 20 rev = "v${version}"; 21 hash = "sha256-jhdgfCWbkF+jD/iXsJ+fYKOtPymxcC46Q4w0aqpvcek="; 22 }; 23 24 patches = [ 25 (fetchpatch { 26 name = "Bump-CMake-minimum-version-to-3.10"; 27 url = "https://gitlab.com/interception/linux/tools/-/commit/110c9b39b54eae9acd16fa6d64539ce9886b5684.patch"; 28 hash = "sha256-vLm7LvXh/pGA12gUpt9vt2XTWFqkdjQFOyRzaDRghHI="; 29 }) 30 ]; 31 32 nativeBuildInputs = [ 33 cmake 34 pkg-config 35 ]; 36 buildInputs = [ 37 libevdev 38 udev 39 yaml-cpp 40 boost 41 ]; 42 43 meta = { 44 description = "Minimal composable infrastructure on top of libudev and libevdev"; 45 homepage = "https://gitlab.com/interception/linux/tools"; 46 changelog = "https://gitlab.com/interception/linux/tools/-/tags/v${version}"; 47 license = lib.licenses.gpl3Only; 48 maintainers = [ lib.maintainers.vyp ]; 49 platforms = lib.platforms.linux; 50 }; 51}