git.iko.soy/typeable/nixpkgs
on master help sign in
thunderbolt: 0.9.2 -> 0.9.3 (#42743)

* thunderbolt: 0.9.2 -> 0.9.3 Fixed up `cmakeFlags` so `tbtacl`, `tbtacl-write`, `tbtxdomain`, and the udev rules now show up in the derivation output. Previously there was only `tbtadm`. * Add a note about placeholder expressions

commit97ec194ab5f46bef6356c7198530bf1f314a11c8 authorBenjamin Staffin <benley@gmail.com> dateSat 30 Jun 2018, 13:18 (8 years ago) parent9fa8a9a
1 file changed+13−8
pkgs/os-specific/linux/thunderbolt/default.nix+13−8
pkgs/os-specific/linux/thunderbolt/default.nix+13−8
@@ -4,16 +4,17 @@
44, fetchFromGitHub
55, pkgconfig
66, txt2tags
7+, udev
78}:
89
910stdenv.mkDerivation rec {
1011 name = "thunderbolt-${version}";
11− version = "0.9.2";
12+ version = "0.9.3";
1213 src = fetchFromGitHub {
1314 owner = "01org";
1415 repo = "thunderbolt-software-user-space";
15− rev = "1ae06410180320a5d0e7408a8d1a6ae2aa443c23";
16− sha256 = "03yk419gj0767lpk6zvla4jx3nx56zsg4x4adl4nd50xhn409rcc";
16+ rev = "v${version}";
17+ sha256 = "02w1bfm7xvq0dzkhwqiq0camkzz9kvciyhnsis61c8vzp39cwx0x";
1718 };
1819
1920 buildInputs = [
@@ -23,11 +24,15 @@ stdenv.mkDerivation rec {
2324 txt2tags
2425 ];
2526
26− cmakeFlags = [
27− "-DCMAKE_BUILD_TYPE='Release'"
28− "-DUDEV_BIN_DIR=$out/bin"
29− "-DUDEV_RULES_DIR=$out/udev"
30− ];
27+ # These can't go in the normal nix cmakeFlags because $out needs to be
28+ # expanded by the shell, not by cmake or nix. $ENV{out} doesn't work right
29+ # either; it results in /build/source/build//nix/store/blahblahblahblah/bin/
30+ # TODO: use ${placeholder "out"} when possible.
31+ # See https://github.com/NixOS/nixpkgs/pull/37693
32+ preConfigure = ''
33+ cmakeFlags+=" -DUDEV_BIN_DIR=$out/bin"
34+ cmakeFlags+=" -DUDEV_RULES_DIR=$out/etc/udev/rules.d"
35+ '';
3136
3237 meta = {
3338 description = "Thunderbolt(TM) user-space components";