spotifywm
This commit is contained in:
parent
78fc80817c
commit
01be4048b1
2 changed files with 18 additions and 1 deletions
|
@ -13,7 +13,22 @@
|
|||
};
|
||||
|
||||
spotify-adblocked = pkgs.callPackage ./spotify-adblocked.nix {
|
||||
inherit spotify-adblock;
|
||||
inherit spotify-adblock spotifywm;
|
||||
};
|
||||
|
||||
spotifywm = pkgs.stdenv.mkDerivation {
|
||||
name = "spotifywm";
|
||||
src = pkgs.fetchFromGitHub {
|
||||
owner = "dasj";
|
||||
repo = "spotifywm";
|
||||
rev = "8624f539549973c124ed18753881045968881745";
|
||||
sha256 = "sha256-AsXqcoqUXUFxTG+G+31lm45gjP6qGohEnUSUtKypew0=";
|
||||
};
|
||||
buildInputs = [pkgs.xorg.libX11];
|
||||
installPhase = ''
|
||||
mkdir -p $out/lib
|
||||
cp spotifywm.so $out/lib/
|
||||
'';
|
||||
};
|
||||
in {
|
||||
home.packages = [spotify-adblocked];
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
# not added if `null`, otherwise, should be a number.
|
||||
deviceScaleFactor ? null,
|
||||
spotify-adblock,
|
||||
spotifywm,
|
||||
}: let
|
||||
# TO UPDATE: just execute the ./update.sh script (won't do anything if there is no update)
|
||||
# "rev" decides what is actually being downloaded
|
||||
|
@ -181,6 +182,7 @@ in
|
|||
--add-flags "--force-device-scale-factor=${toString deviceScaleFactor}" \
|
||||
''} \
|
||||
--prefix LD_LIBRARY_PATH : "$librarypath" \
|
||||
--prefix LD_PRELOAD : "${spotifywm}/lib/spotifywm.so" \
|
||||
--prefix PATH : "${gnome.zenity}/bin"
|
||||
|
||||
# fix Icon line in the desktop file (#48062)
|
||||
|
|
Loading…
Add table
Reference in a new issue