mirror of
https://github.com/nix-community/naersk
synced 2024-11-22 11:43:10 +00:00
Merge pull request #57 from nmattia/nm-build-build-deps
Ensure build-dependencies are built
This commit is contained in:
commit
52a4a55ba8
1 changed files with 6 additions and 0 deletions
6
lib.nix
6
lib.nix
|
@ -142,6 +142,12 @@ rec
|
|||
pushd $out/$member > /dev/null
|
||||
mkdir -p src
|
||||
touch src/lib.rs
|
||||
# pretend there's a `build.rs`, otherwise cargo doesn't build
|
||||
# the `[build-dependencies]`. Custom locations of build scripts
|
||||
# aren't an issue because we strip the `build` field in
|
||||
# `fixupCargoToml`; so cargo always thinks there's a build
|
||||
# script which is `./build.rs`.
|
||||
echo 'fn main(){}' > build.rs
|
||||
popd > /dev/null
|
||||
done
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue