Overlay for ulauncher fails

I’m trying to install the package ulauncher, which is currently broken on nixpkgs. There is a PR to fix it, but until its merged, I tried to make an overlay:

self: super:
{
  ulauncher = super.ulauncher.overrideAttrs (old: rec {

    nativeBuildInputs = with super; [
      python3Packages.distutils_extra
      intltool
      wrapGAppsHook
      gdk-pixbuf
      gobject-introspection
    ];
  
    buildInputs = with super; [
      gdk-pixbuf
      glib
      gnome.adwaita-icon-theme
      gtk3
      keybinder3
      libappindicator
      libnotify
      librsvg
      webkitgtk
      wmctrl
    ];
  });
}

When I try to install it with this overlay, I get the following error:

error: builder for '/nix/store/3xj8s3jk4xixlh2vswahn4azvwdcjxwm-ulauncher-5.12.1.drv' failed with exit code 2;
       last 10 log lines:
       > bin/ulauncher-toggle: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/2ispfz80kmwrsvwndxkxs56irn86h43p-bash-5.1-p16/bin/bash"
       > configuring
       > no configure script, doing nothing
       > building
       > no Makefile, doing nothing
       > glibPreInstallPhase
       > glibPreInstallPhase
       > installing
       > install flags: SHELL=/nix/store/2ispfz80kmwrsvwndxkxs56irn86h43p-bash-5.1-p16/bin/bash gsettingsschemadir=/nix/store/d55d24119hf28djm9dvcij1afw3bxqz9-ulauncher-5.12.1/share/gsettings-schemas/ulauncher-5.12.1/glib-2.0/schemas/ gsettingsschemadir=/nix/store/d55d24119hf28djm9dvcij1afw3bxqz9-ulauncher-5.12.1/share/gsettings-schemas/ulauncher-5.12.1/glib-2.0/schemas/ pkgconfigdir=/nix/store/d55d24119hf28djm9dvcij1afw3bxqz9-ulauncher-5.12.1/lib/pkgconfig m4datadir=/nix/store/d55d24119hf28djm9dvcij1afw3bxqz9-ulauncher-5.12.1/share/aclocal aclocaldir=/nix/store/d55d24119hf28djm9dvcij1afw3bxqz9-ulauncher-5.12.1/share/aclocal install
       > make: *** No rule to make target 'install'.  Stop.
       For full logs, run 'nix log /nix/store/3xj8s3jk4xixlh2vswahn4azvwdcjxwm-ulauncher-5.12.1.drv'.
error: 1 dependencies of derivation '/nix/store/qf78ca3h66bcqwd3jyd8xkbwz85v5mck-system-path.drv' failed to build

What’s causing this issue?

You’re probably need to add old.nativeBuildInputs and old.buildInputs to the lists or the overrideAttrs is undoing some things from buildPythonApplication.