Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nix Flake: Fix overlay (again) #3196

Merged
merged 3 commits into from
May 3, 2024
Merged

Conversation

spikespaz
Copy link
Contributor

Because last time I "fixed" it, I actually broke it, I forgot a line, but this time I changed other minor stuff (added waybar-named overlay and package, in addition to default, and the package output now is properly inherited from the overlay applied on top of Nixpkgs).

spikespaz added 3 commits May 2, 2024 15:51
My last PR fixed the issue that `callPackage` was being used from
`prev`, which would mean that all of the arguments it passes to the
expression are also going to be from `prev`. This would have been wrong,
so I fixed it to get dependencies from `final`,
except that I missed `waybar` which does need to come from `prev`.
@Alexays Alexays merged commit 50476ed into Alexays:master May 3, 2024
9 checks passed
@Alexays
Copy link
Owner

Alexays commented May 3, 2024

Thanks!

@Arjun31415
Copy link

Arjun31415 commented May 4, 2024

Umm, I think it broke for me.
I have this in my flake -

    waybar = {
      url = "github:Alexays/Waybar";
      inputs.nixpkgs.follows = "nixpkgs";
    };

This is how I was using it

  programs.waybar = {
    enable = true;
    package = inputs.waybar.packages.${pkgs.system}.default;
    systemd.enable = false;
  };

This is the flake.lock relevant section

    "waybar": {
      "inputs": {
        "flake-compat": "flake-compat_7",
        "nixpkgs": [
          "nixpkgs"
        ]
      },
      "locked": {
        "lastModified": 1714718861,
        "narHash": "sha256-mCQdrn0Y3oOVZP/CileWAhuBX6aARBNrfxyqJBB4NxA=",
        "owner": "Alexays",
        "repo": "Waybar",
        "rev": "231d6972d7a023e9358ab7deda509baac49006cb",
        "type": "github"
      },
      "original": {
        "owner": "Alexays",
        "repo": "Waybar",
        "type": "github"
      }
    },

But

waybar --version
Waybar v0.10.2

And so the bar is broken as I am on hyprland and the socket path has changed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants