Skip to content

Instantly share code, notes, and snippets.

@redvers
Created November 13, 2020 22:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save redvers/98df62d77631c2933a5fa18d1fa8a44d to your computer and use it in GitHub Desktop.
Save redvers/98df62d77631c2933a5fa18d1fa8a44d to your computer and use it in GitHub Desktop.
Asked to change propagatedBuildInputs to use withPackages - what am I doing wrong?
Error is:
error: while evaluating the attribute 'propagatedBuildInputs' of the derivation 'eyewitness-v20201021.1' at /home/red/projects/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:192:11:
cannot coerce a function to a string, at /home/red/projects/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:192:11
propagatedBuildInputs = [
firefox
geckodriver
xorg.xorgserver
python3.withPackages (p: [p.pip p.netaddr p.selenium p.fuzzywuzzy p.virtual-display])
# python37
# python37Packages.pip
# python37Packages.netaddr
# python37Packages.selenium
# python37Packages.fuzzywuzzy
# python37Packages.virtual-display
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment