git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #49495 from dtzWill/fix/thunderbolt-cleanup

thunderbolt: cleanup

commit467a822ac77c3d9488ca3e885384da591f6f58b9 authorWill Dietz <github@wdtz.org> dateFri 2 Nov 2018, 04:04 (8 years ago) parentc4173425d61690
1 file changed+6−15
pkgs/os-specific/linux/thunderbolt/default.nix+6−15
pkgs/os-specific/linux/thunderbolt/default.nix+6−15
@@ -16,22 +16,13 @@ stdenv.mkDerivation rec {
1616 sha256 = "02w1bfm7xvq0dzkhwqiq0camkzz9kvciyhnsis61c8vzp39cwx0x";
1717 };
1818
19− buildInputs = [
20− boost
21− cmake
22− pkgconfig
23− txt2tags
24− ];
19+ nativeBuildInputs = [ cmake pkgconfig txt2tags ];
20+ buildInputs = [ boost ];
2521
26− # These can't go in the normal nix cmakeFlags because $out needs to be
27− # expanded by the shell, not by cmake or nix. $ENV{out} doesn't work right
28− # either; it results in /build/source/build//nix/store/blahblahblahblah/bin/
29− # TODO: use ${placeholder "out"} when possible.
30− # See https://github.com/NixOS/nixpkgs/pull/37693
31− preConfigure = ''
32− cmakeFlags+=" -DUDEV_BIN_DIR=$out/bin"
33− cmakeFlags+=" -DUDEV_RULES_DIR=$out/etc/udev/rules.d"
34− '';
22+ cmakeFlags = [
23+ "-DUDEV_BIN_DIR=${placeholder "out"}/bin"
24+ "-DUDEV_RULES_DIR=${placeholder "out"}/etc/udev/rules.d"
25+ ];
3526
3627 meta = {
3728 description = "Thunderbolt(TM) user-space components";