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
spotify-adblock: init at 1.4 #119367
spotify-adblock: init at 1.4 #119367
Conversation
took a while ... problem was the old spotify version in nixpkgs unstable (black screen bug). with the how to get this working with spotify 1.1.55.498 # /etc/nixos/configuration.nix
{ config, pkgs, lib, stdenv, ... }:
let
base-config = {
allowUnfree = true; # needed for spotify, ...
};
spotify-pkgs = import (fetchTarball
https://github.com/NixOS/nixpkgs/archive/caeafab22e39f1e95fc9452ff190fa7bdf342579.tar.gz # 1.1.55.498
#https://github.com/NixOS/nixpkgs/archive/bed08131cd29a85f19716d9351940bdc34834492.tar.gz # 1.1.46.916 2021-02-08 # black screen bug
#https://github.com/NixOS/nixpkgs/archive/2c162d49cd5b979eb66ff1653aecaeaa01690fcc.tar.gz # 1.1.26.501 2020-11-09 # glibc version mismatch
#https://github.com/NixOS/nixpkgs/archive/fcc8660d359d2c582b0b148739a72cec476cfef5.tar.gz # 1.1.10.546 2020-03-09
) { config = base-config; };
in
{
imports = [ ./hardware-configuration.nix ];
nixpkgs.config = base-config // {
packageOverrides = pkgs: with pkgs; {
inherit (spotify-pkgs) spotify;
inherit (spotify-pkgs) spotify-unwrapped; # required by spotify-adblock
};
};
nixpkgs.overlays = [ ( self: super: {
spotify-adblock = pkgs.callPackage ./extra-pkgs/spotify/spotify-adblock.nix {};
})];
environment.systemPackages = with pkgs; [
spotify-adblock
];
}
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure if nixpkgs is the right place for this.
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
agree ... also in arch linux, adblockers like published to NUR as |
callPackage = newScope spotify; | ||
spotify-adblock = callPackage ./spotify-adblock.nix {}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
broken. spotify
is not defined here
closing in favor of
|
Motivation for this change
remove ads from "spotify free"
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)