nixpkgs/pkgs/development
Jan Tojnar f4e74edd8c python.pkgs.wrapPython: get rid of warning
When `makeWrapperArgs` variable is not set, `declare -p makeWrapperArgs`
will return with 1 and print an error message to stderr.

I did not handle the non-existence case in b0633406cb
because I thought `mk-python-derivation` will always define `makeWrapperArgs`
but `wrapProgram` can be called independently. And even with `mk-python-derivation`,
`makeWrappers` will not be set unless explicitly declared in the derivation
because of https://github.com/NixOS/nix/issues/1461.

I was lead to believe that because the builds were succeeding and I confirmed
that the mechanism fails when the variable is not defined and `-o nounset` is enabled.
It appears that `wrapPython` setup hook is not running under `-o nounset`, though,
invaldating the assumption.

Now we are checking that the variable exists before checking its type, which
will get rid of the warning and also prevent future error when `-o nounset`
is enabled in the setup hook.

For more information, see the discussion at
https://github.com/NixOS/nixpkgs/commit/a6bb2ede232940a96150da7207a3ecd15eb6328
2019-12-30 16:46:55 +01:00
..
androidndk-pkgs androidndkPkgs: fix typo in propagatedBuildInputs (#75045) 2019-12-05 08:43:47 -05:00
arduino
beam-modules treewide: installFlags is a list 2019-12-30 13:22:43 +01:00
bower-modules/generic
chez-modules chez-matchable: init at 20160306 2019-12-11 19:40:50 +01:00
compilers Merge gcc-9 into staging (#68029) 2019-12-30 16:38:38 +01:00
coq-modules treewide: installFlags is a list 2019-12-30 13:22:43 +01:00
dhall-modules
dotnet-modules/patches
em-modules/generic
go-modules buildGoModule: support impure modules (#76532) 2019-12-28 12:36:42 -08:00
go-packages buildGoPackage: disable module-mode 2019-12-10 18:50:44 +01:00
guile-modules treewide: fix *Flags 2019-12-30 04:50:37 +01:00
haskell-modules treewide: replace make/build/configure/patchFlags with nix lists 2019-12-30 12:58:11 +01:00
idris-modules idrisPackages.tparsec: 2019-06-18 -> 2019-09-19 2019-12-15 03:03:01 +03:00
interpreters python.pkgs.wrapPython: get rid of warning 2019-12-30 16:46:55 +01:00
java-modules
libraries Merge gcc-9 into staging (#68029) 2019-12-30 16:38:38 +01:00
lisp-modules
lua-modules treewide: replace make/build/configure/patchFlags with nix lists 2019-12-30 12:58:11 +01:00
misc treewide: replace make/build/configure/patchFlags with nix lists 2019-12-30 12:58:11 +01:00
mobile cocoapods-beta: 1.8.4 -> 1.9.0.beta.1 2019-12-16 16:15:34 -08:00
node-packages texlab: fix macOS build (#76544) 2019-12-26 16:12:58 -05:00
ocaml-modules treewide: installFlags is a list 2019-12-30 13:22:43 +01:00
perl-modules Treewide: update some problematic homepages 2019-12-08 10:21:29 -08:00
pharo
pure-modules treewide: replace make/build/configure/patchFlags with nix lists 2019-12-30 12:58:11 +01:00
python-modules pythonPackages.sphinx: remove sqlalchemy 2019-12-30 16:46:55 +01:00
r-modules R: Update CRAN and bioconductor packages 2019-12-16 18:56:49 +01:00
ruby-modules Merge gcc-9 into staging (#68029) 2019-12-30 16:38:38 +01:00
tools devpi-server: fix tests 2019-12-30 16:46:52 +01:00
web treewide: installTargets is a list 2019-12-30 13:29:27 +01:00