summary refs log tree commit diff
path: root/pkgs/build-support/rust/build-rust-crate
diff options
context:
space:
mode:
authorAndreas Rammhold <andreas@rammhold.de>2020-01-07 00:39:46 +0100
committerAndreas Rammhold <andreas@rammhold.de>2020-01-07 00:49:48 +0100
commit6383b42dae73de3d26e60252b6109054c71157f7 (patch)
treeb5bfee714d63af691231a4b163d65ab706abe984 /pkgs/build-support/rust/build-rust-crate
parentcca0c894a13ec398de8b046174239513197f5c74 (diff)
downloadnixpkgs-6383b42dae73de3d26e60252b6109054c71157f7.tar
nixpkgs-6383b42dae73de3d26e60252b6109054c71157f7.tar.gz
nixpkgs-6383b42dae73de3d26e60252b6109054c71157f7.tar.bz2
nixpkgs-6383b42dae73de3d26e60252b6109054c71157f7.tar.lz
nixpkgs-6383b42dae73de3d26e60252b6109054c71157f7.tar.xz
nixpkgs-6383b42dae73de3d26e60252b6109054c71157f7.tar.zst
nixpkgs-6383b42dae73de3d26e60252b6109054c71157f7.zip
buildRustCrate: fixup usage of `builtins.filterSource`
While unifying most of the lib function calls I accidentially changed
the filterSource functions as well. Since there were no tests I ended
up forgetting about this case (even thought I ran into it…).
Diffstat (limited to 'pkgs/build-support/rust/build-rust-crate')
-rw-r--r--pkgs/build-support/rust/build-rust-crate/helpers.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/rust/build-rust-crate/helpers.nix b/pkgs/build-support/rust/build-rust-crate/helpers.nix
index 8c5e9dfef2f..386d0ce7084 100644
--- a/pkgs/build-support/rust/build-rust-crate/helpers.nix
+++ b/pkgs/build-support/rust/build-rust-crate/helpers.nix
@@ -11,14 +11,14 @@
      else
        features
    ) [] (lib.attrNames feat);
-  include = includedFiles: src: lib.filterSource (path: type:
+  include = includedFiles: src: builtins.filterSource (path: type:
      lib.any (f:
        let p = toString (src + ("/" + f));
        in
        p == path || (lib.strings.hasPrefix (p + "/") path)
      ) includedFiles
   ) src;
-  exclude = excludedFiles: src: lib.filterSource (path: type:
+  exclude = excludedFiles: src: builtins.filterSource (path: type:
     lib.all (f:
        !lib.strings.hasPrefix (toString (src + ("/" + f))) path
     ) excludedFiles