dotfiles/nix/.config/nixpkgs/overlays/03-customizations.nix

22 lines
835 B
Nix
Raw Normal View History

2017-08-15 17:55:19 +02:00
self: super: {
spotify = super.spotify.overrideDerivation (attrs: rec {
installPhase = builtins.replaceStrings
["wrapProgram $out/share/spotify/spotify"]
["wrapProgram $out/share/spotify/spotify --add-flags --force-device-scale-factor=\\$SPOTIFY_DEVICE_SCALE_FACTOR"]
attrs.installPhase;
});
mpv = super.mpv.override { vaapiSupport = true; };
2018-03-10 18:50:14 +01:00
polybar = super.polybar.override { i3GapsSupport = true; };
python36Packages = super.python36Packages.override { overrides = (self: super: {
2017-08-15 17:55:19 +02:00
# pycrypto runs slow tests by default
2018-03-10 18:50:14 +01:00
pycrypto = super.pycrypto.overrideDerivation (attrs: {
2017-08-15 17:55:19 +02:00
installCheckPhase = ''
2018-03-10 18:50:14 +01:00
${self.python.interpreter} nix_run_setup.py test --skip-slow-tests
2017-08-15 17:55:19 +02:00
'';
});
2018-03-10 18:50:14 +01:00
}); };
2017-08-15 17:55:19 +02:00
# wine = pkgs.wine.override { wineRelease = "staging"; wineBuild = "wineWow"; };
}