fix(dracula): make wallpaper work again

This commit is contained in:
matt1432 2023-12-13 19:59:04 -05:00
parent e67236d0d9
commit bd7e203fb1
3 changed files with 7 additions and 24 deletions

View file

@ -3,8 +3,8 @@
bat-colors = prev.callPackage ./bat.nix prev;
git-colors = prev.callPackage ./git.nix prev;
plymouth = prev.callPackage ./plymouth.nix prev;
wallpaper = prev.callPackage ./wallpaper.nix prev;
Xresources = prev.callPackage ./xresources.nix prev;
wallpaper = prev.fetchurl (import ./wallpaper.nix);
in {
src = prev.fetchFromGitHub {
owner = "dracula";
@ -16,12 +16,12 @@
installPhase = ''
runHook preInstall
mkdir -p $out/share/plymouth/themes
mkdir -p $out/share/plymouth/themes $out/wallpapers
cp -a ${wallpaper} $out/wallpapers/waves.png
cp -a ${bat-colors}/bat $out/bat
cp -a ${git-colors}/git-colors $out/git-colors
cp -a ${plymouth}/share/plymouth/themes/dracula $out/share/plymouth/themes/
cp -a ${wallpaper}/wallpapers $out/wallpapers
cp -a ${Xresources}/xres $out/xres
# -------------------------------------------

View file

@ -1,21 +1,4 @@
{
stdenv,
fetchurl,
...
}:
stdenv.mkDerivation {
name = "dracula-wallpaper";
src = fetchurl {
url = "https://github.com/aynp/dracula-wallpapers/blob/main/Art/4k/Waves%201.png?raw=true";
hash = "sha256-f9FwSOSvqTeDj4bOjYUQ6TM+/carCD9o5dhg/MnP/lk=";
};
phases = ["installPhase"];
installPhase = ''
mv ./* ./waves.png
mkdir -p $out/wallpapers
cp -a ./waves.png $out/wallpapers
'';
}

View file

@ -13,11 +13,11 @@
fetchFromGitLab,
}:
stdenv.mkDerivation rec {
pname = "pam-fprint-grosshack";
name = "pam-fprint-grosshack";
src = fetchFromGitLab {
owner = "mishakmak";
repo = pname;
repo = name;
rev = "45b42524fb5783e1e555067743d7e0f70d27888a";
hash = "sha256-obczZbf/oH4xGaVvp3y3ZyDdYhZnxlCWvL0irgEYIi0=";
};