Overlays: Difference between revisions

Tags: Mobile edit Mobile web edit
Remove rec from python overlay section. rec should never ever be used in overlays.
Line 295: Line 295:
final: prev:
final: prev:
# Within the overlay we use a recursive set, though I think we can use `final` as well.
# Within the overlay we use a recursive set, though I think we can use `final` as well.
rec {
{
   # nix-shell -p python.pkgs.my_stuff
   # nix-shell -p python.pkgs.my_stuff
   python = prev.python.override {
   python = prev.python.override {
Line 311: Line 311:
   };
   };
   # nix-shell -p pythonPackages.my_stuff
   # nix-shell -p pythonPackages.my_stuff
   pythonPackages = python.pkgs;
   pythonPackages = final.python.pkgs;


   # nix-shell -p my_stuff
   # nix-shell -p my_stuff
   my_stuff = pythonPackages.buildPythonPackage rec {
   my_stuff = final.pythonPackages.buildPythonPackage rec {
     pname = "pyaes";
     pname = "pyaes";
     version = "1.6.0";
     version = "1.6.0";