File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 1
1
inputs :
2
2
3
3
{ lib
4
+ , callPackage
4
5
, stdenv
5
6
, makeRustPlatform
6
7
, rustPlatform
@@ -14,6 +15,7 @@ inputs:
14
15
, hyperscan
15
16
, vectorscan
16
17
, python3
18
+ , util-linux
17
19
, ruff
18
20
, vendorHyperscan ? false
19
21
, vendorVectorscan ? false
98
100
( optionals vendorHyperscan [ "-F hyperscan" ] )
99
101
++ ( optionals ( vendorVectorscan ) [ "-F vectorscan" ] ) ;
100
102
101
- nativeBuildInputs = with rustPlatform ; [
102
- bindgenHook
103
- cargoSetupHook
104
- ( maturinBuildHook . override { pkgsHostTarget = { inherit maturin cargo rustc ; } ; } )
105
- ] ++ optional ( vendor && stdenv . isLinux ) util-linux
106
- ++ optional coverage cargo-llvm-cov ;
103
+ nativeBuildInputs =
104
+ let
105
+ rustHooks = callPackage "${ inputs . nixpkgs } /pkgs/build-support/rust/hooks" { } ;
106
+ in
107
+ [
108
+ rustPlatform . cargoSetupHook
109
+ ( rustHooks . maturinBuildHook . override { pkgsHostTarget = { inherit maturin cargo rustc ; } ; } )
110
+ ] ++ optional ( vendor && stdenv . isLinux ) util-linux
111
+ ++ optional coverage cargo-llvm-cov ;
107
112
108
113
preConfigure = optionalString coverage ''
109
114
source <(cargo llvm-cov show-env --export-prefix)
You can’t perform that action at this time.
0 commit comments