blob: b1a3986b66e9dfa6e45b3c3e26d1dbc5b9f37b75 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
{
lib,
stdenv,
boost,
cmake,
fetchFromGitHub,
pkg-config,
txt2tags,
udevCheckHook,
}:
stdenv.mkDerivation rec {
pname = "thunderbolt";
version = "0.9.3";
src = fetchFromGitHub {
owner = "01org";
repo = "thunderbolt-software-user-space";
rev = "v${version}";
sha256 = "02w1bfm7xvq0dzkhwqiq0camkzz9kvciyhnsis61c8vzp39cwx0x";
};
nativeBuildInputs = [
cmake
pkg-config
txt2tags
udevCheckHook
];
buildInputs = [ boost ];
cmakeFlags = [
"-DUDEV_BIN_DIR=${placeholder "out"}/bin"
"-DUDEV_RULES_DIR=${placeholder "out"}/etc/udev/rules.d"
];
doInstallCheck = true;
meta = {
description = "Thunderbolt(TM) user-space components";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.ryantrinkle ];
homepage = "https://01.org/thunderbolt-sw";
platforms = lib.platforms.linux;
};
}
|