[clever@amd-nixos:~]$ nix-build -E 'with import <nixpkgs> {}; callPackage ./bammmf.nix {}' -K
...
configure: error: You need to install python-libxslt1 and python-libxml2
note: keeping build directory ‘/tmp/nix-build-bamf-0.5.3.drv-0’
...
[root@amd-nixos:/tmp/nix-build-bamf-0.5.3.drv-0/bamf-0.5.3]# less configure
...
if !($PYTHON -c "import libxslt, libxml2" 2> /dev/null); then
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
as_fn_error $? "You need to install python-libxslt1 and python-libxml2" "$LINENO" 5;
...
[clever@amd-nixos:~]$ nix-shell -E 'with import <nixpkgs> {}; callPackage ./bammmf.nix {}' -K
[nix-shell:~]$ python
Python 2.7.12 (default, Jun 25 2016, 21:49:32)
[GCC 5.4.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import libxslt, libxml2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named libxslt