diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-07-05 01:19:30 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-11-26 22:07:28 +0100 |
commit | afb021893beb598213d4225de5edd746baa81d7a (patch) | |
tree | 42b09ee1c119e9e632d77a0b7462d046f3b92dba | |
parent | d722e2175ef826cd60f05608fb7d58aa82261549 (diff) |
Reduce the size of the vendor directory by removing some winapi cruft
-rw-r--r-- | release.nix | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/release.nix b/release.nix index 64aa35e11..9cf4c74f2 100644 --- a/release.nix +++ b/release.nix @@ -42,8 +42,15 @@ let # Add just enough metadata to keep Cargo happy. printf '{"files":{},"package":"${file.outputHash}"}' > "$dir/.cargo-checksum.json" + # Clean up some cruft from the winapi crates. FIXME: find + # a way to remove winapi* from our dependencies. + if [[ $dir =~ /winapi ]]; then + find $dir -name "*.a" -print0 | xargs -0 rm -f -- + fi + mv "$dir" $out/vendor/ - rmdir $out/vendor/tmp + + rm -rf $out/vendor/tmp '') files)} ''; |