nixpkgs/pkgs/build-support
Teo Klestrup Röijezon 5eec83eb83 buildRustCrate: Fix `include` filter
buildRustCrate has a handy `include` helper, that only imports those whitelisted
files and folders to the store.

However, the function's matching logic is broken and includes all files,
regardless of whether or not they're whitelisted, as long as the whitelist
contains at least one name (regardless of whether that name exists). This is
because it doesn't take into account that
`lib.strings.removePrefix "foo" "bar" == "bar"` (that is, paths that don't match
the prefix are passed straight through).
2019-03-25 15:24:42 +01:00
..
agda
appimage
bintools-wrapper
build-bazel-package
build-dotnet-package
build-fhs-userenv
build-setupcfg
buildenv
cc-wrapper
docker
dotnetbuildhelpers
dotnetenv
emacs
expand-response-params
fetchbitbucket
fetchbower
fetchbzr
fetchcvs
fetchdarcs
fetchdocker
fetchfossil
fetchgit
fetchgithub
fetchgitlab
fetchgitlocal
fetchgx
fetchhg
fetchipfs
fetchmavenartifact
fetchmtn
fetchnuget
fetchpatch
fetchrepoorcz
fetchrepoproject
fetchs3
fetchsavannah
fetchsvn
fetchsvnrevision
fetchsvnssh
fetchurl
fetchzip
icon-conv-tools
kernel
libredirect
make-desktopitem
make-startupitem
make-symlinks
mkshell
mono-dll-fixer
nix-gitignore
nix-prefetch-github
nuke-references
ocaml
prefer-remote-fetch
references-by-popularity
release
remove-references-to
rust buildRustCrate: Fix `include` filter 2019-03-25 15:24:42 +01:00
setup-hooks
singularity-tools
skaware
src-only
substitute
substitute-files
templaterpm
upstream-updater
vm
wrapper-common
writers
build-maven.nix
build-pecl.nix
closure-info.nix
dhall-to-nix.nix
plugins.nix
replace-dependency.nix
setup-systemd-units.nix
source-from-head-fun.nix
trivial-builders.nix