nix-community / NUR

Nix User Repository: User contributed nix packages [maintainer=@Mic92]
https://nur.nix-community.org/
MIT License
1.28k stars 339 forks source link

Spotify-adblock doesn't work anymore #714

Closed sobornostea closed 3 months ago

sobornostea commented 3 months ago

Hello,

I am only using NUR for one package, so pardon me if I lack knowledge

I have the following (simplified) flake.nix for my system :

{
  description = "My NixOS Flake";
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    nur.url = "github:nix-community/NUR/2b457ac396f54d0e184f658d852080a6bb6ce80b"; # pinned on a specific commit that used to work
    # nur.url = "github:nix-community/NUR/" # this doesn't work anymore !
  };

  outputs = {
    self,
    nixpkgs,
    nur,
    ...
  } @ inputs: {
    nixosConfigurations = {
      "myhostname" = nixpkgs.lib.nixosSystem {
        system = "x86_64-linux";

        modules = [
          ./configuration.nix
          nur.nixosModules.nur
          ({config, ...}: {
            environment.systemPackages = [config.nur.repos.nltch.spotify-adblock];
          })
        ];
      };
    };
  };
}

When I try to run without pinning a specific commit, I get the following error :

[...]

 error: attribute 'nltch' missing

       at /nix/store/y07ydqycs2z97sn40vhy6sj403hxv1vl-source/flake.nix:133:43:

          132|           ({config, ...}: {
          133|             environment.systemPackages = [config.nur.repos.nltch.spotify-adblock];
             |                                           ^
          134|           })

Any tips to figure this out ?

Mic92 commented 3 months ago

Please ask in the repository of @NL-TCH regarding this package. We don't maintain user-provided packages here.