2018-01-02 19:28:56 +00:00
|
|
|
{ stdenv
|
|
|
|
, boost
|
|
|
|
, cmake
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkgconfig
|
|
|
|
, txt2tags
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "thunderbolt";
|
2018-06-30 17:18:31 +00:00
|
|
|
version = "0.9.3";
|
2018-01-02 19:28:56 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "01org";
|
|
|
|
repo = "thunderbolt-software-user-space";
|
2018-06-30 17:18:31 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "02w1bfm7xvq0dzkhwqiq0camkzz9kvciyhnsis61c8vzp39cwx0x";
|
2018-01-02 19:28:56 +00:00
|
|
|
};
|
|
|
|
|
2018-10-30 22:11:18 +00:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig txt2tags ];
|
|
|
|
buildInputs = [ boost ];
|
2018-01-02 19:28:56 +00:00
|
|
|
|
2018-10-30 22:11:18 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DUDEV_BIN_DIR=${placeholder "out"}/bin"
|
|
|
|
"-DUDEV_RULES_DIR=${placeholder "out"}/etc/udev/rules.d"
|
|
|
|
];
|
2018-01-02 19:28:56 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Thunderbolt(TM) user-space components";
|
|
|
|
license = stdenv.lib.licenses.bsd3;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.ryantrinkle ];
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://01.org/thunderbolt-sw";
|
2018-01-02 19:28:56 +00:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|