Merge pull request #49495 from dtzWill/fix/thunderbolt-cleanup
thunderbolt: cleanup
This commit is contained in:
commit
467a822ac7
@ -16,22 +16,13 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "02w1bfm7xvq0dzkhwqiq0camkzz9kvciyhnsis61c8vzp39cwx0x";
|
sha256 = "02w1bfm7xvq0dzkhwqiq0camkzz9kvciyhnsis61c8vzp39cwx0x";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [
|
nativeBuildInputs = [ cmake pkgconfig txt2tags ];
|
||||||
boost
|
buildInputs = [ boost ];
|
||||||
cmake
|
|
||||||
pkgconfig
|
|
||||||
txt2tags
|
|
||||||
];
|
|
||||||
|
|
||||||
# These can't go in the normal nix cmakeFlags because $out needs to be
|
cmakeFlags = [
|
||||||
# expanded by the shell, not by cmake or nix. $ENV{out} doesn't work right
|
"-DUDEV_BIN_DIR=${placeholder "out"}/bin"
|
||||||
# either; it results in /build/source/build//nix/store/blahblahblahblah/bin/
|
"-DUDEV_RULES_DIR=${placeholder "out"}/etc/udev/rules.d"
|
||||||
# TODO: use ${placeholder "out"} when possible.
|
];
|
||||||
# See https://github.com/NixOS/nixpkgs/pull/37693
|
|
||||||
preConfigure = ''
|
|
||||||
cmakeFlags+=" -DUDEV_BIN_DIR=$out/bin"
|
|
||||||
cmakeFlags+=" -DUDEV_RULES_DIR=$out/etc/udev/rules.d"
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Thunderbolt(TM) user-space components";
|
description = "Thunderbolt(TM) user-space components";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user