From e6d466a28126587d07ee20082d7f6d464126fe65 Mon Sep 17 00:00:00 2001 From: Yorick van Pelt Date: Fri, 27 Jan 2017 16:51:03 +0100 Subject: [PATCH] add env variable to set spotify device_scale_factor --- nix/.nixpkgs/config.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nix/.nixpkgs/config.nix b/nix/.nixpkgs/config.nix index 999c099..dfe3560 100644 --- a/nix/.nixpkgs/config.nix +++ b/nix/.nixpkgs/config.nix @@ -30,6 +30,12 @@ pyroscope = pkgs.callPackage ./pyroscope.nix {}; peageprint = pkgs.callPackage ./peageprint.nix {}; nottetris2 = pkgs.callPackage ./nottetris2.nix {}; + spotify = pkgs.spotify.overrideDerivation (attrs: { + 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; + }); python35Packages = py3 // { # pycrypto runs slow tests by default pycrypto = py3.pycrypto.overrideDerivation (attrs: {