git.iko.soy/typeable/nixpkgs
on master help sign in
thunderbolt: cleanup
commit5d616900ec910afa369f57139c64edb97d99fecd authorWill Dietz <w@wdtz.org> dateTue 30 Oct 2018, 17:11 (8 years ago) parent5e5e57c
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";