2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, boost
|
|
|
|
, cmake
|
|
|
|
, fetchFromGitHub
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
, txt2tags
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "thunderbolt";
|
|
|
|
version = "0.9.3";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "01org";
|
|
|
|
repo = "thunderbolt-software-user-space";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "02w1bfm7xvq0dzkhwqiq0camkzz9kvciyhnsis61c8vzp39cwx0x";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ cmake pkg-config txt2tags ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ boost ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DUDEV_BIN_DIR=${placeholder "out"}/bin"
|
|
|
|
"-DUDEV_RULES_DIR=${placeholder "out"}/etc/udev/rules.d"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Thunderbolt(TM) user-space components";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = [ lib.maintainers.ryantrinkle ];
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://01.org/thunderbolt-sw";
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = lib.platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|