Skip to content

Commit

Permalink
buildRustPackage: use .sh extension for patch scripts
Browse files Browse the repository at this point in the history
All files inside `pkgs/build-support/rust/patch-registry-deps/` were
being executed as scripts when downloading dependencies from the Rust
crates.io registry, so that they could apply NixOS-specific patches.

However, it can be convenient to allow *.patch files to reside there as well.
Since we don't want to execute *.patch files, we'll simply execute all
*.sh files (instead of executing all files).
  • Loading branch information
wizeman committed Feb 17, 2017
1 parent 692f3c1 commit b1a810c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/build-support/rust/default.nix
Expand Up @@ -83,7 +83,7 @@ in stdenv.mkDerivation (args // {
cd $NIX_BUILD_TOP/deps/registry/src/*
for script in $patchRegistryDeps/*; do
for script in $patchRegistryDeps/*.sh; do
# Run in a subshell so that directory changes and shell options don't
# affect any following commands
Expand Down

0 comments on commit b1a810c

Please sign in to comment.