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