at 23.11-beta 34 lines 798 B view raw
1{ lib, stdenv 2, boost 3, cmake 4, fetchFromGitHub 5, pkg-config 6, txt2tags 7}: 8 9stdenv.mkDerivation rec { 10 pname = "thunderbolt"; 11 version = "0.9.3"; 12 src = fetchFromGitHub { 13 owner = "01org"; 14 repo = "thunderbolt-software-user-space"; 15 rev = "v${version}"; 16 sha256 = "02w1bfm7xvq0dzkhwqiq0camkzz9kvciyhnsis61c8vzp39cwx0x"; 17 }; 18 19 nativeBuildInputs = [ cmake pkg-config txt2tags ]; 20 buildInputs = [ boost ]; 21 22 cmakeFlags = [ 23 "-DUDEV_BIN_DIR=${placeholder "out"}/bin" 24 "-DUDEV_RULES_DIR=${placeholder "out"}/etc/udev/rules.d" 25 ]; 26 27 meta = { 28 description = "Thunderbolt(TM) user-space components"; 29 license = lib.licenses.bsd3; 30 maintainers = [ lib.maintainers.ryantrinkle ]; 31 homepage = "https://01.org/thunderbolt-sw"; 32 platforms = lib.platforms.linux; 33 }; 34}