This commit is contained in:
parent
8265797d51
commit
e5407513a3
1 changed files with 10 additions and 5 deletions
|
|
@ -83,15 +83,20 @@
|
||||||
papirusDark = pkgs.runCommand "papirus-dark-${closestPfColor}" {
|
papirusDark = pkgs.runCommand "papirus-dark-${closestPfColor}" {
|
||||||
nativeBuildInputs = [ pkgs.papirus-folders ];
|
nativeBuildInputs = [ pkgs.papirus-folders ];
|
||||||
} ''
|
} ''
|
||||||
mkdir -p $out/share/icons
|
# Work in a fully writable temp tree so papirus-folders can find and
|
||||||
cp -r ${pkgs.papirus-icon-theme}/share/icons/Papirus-Dark $out/share/icons/
|
# modify the theme without fighting the nix sandbox path structure.
|
||||||
chmod -R u+w $out/share/icons/Papirus-Dark
|
tmpdata=$(mktemp -d)
|
||||||
|
mkdir -p $tmpdata/icons
|
||||||
|
cp -r ${pkgs.papirus-icon-theme}/share/icons/Papirus-Dark $tmpdata/icons/
|
||||||
|
chmod -R u+w $tmpdata/icons/Papirus-Dark
|
||||||
|
|
||||||
export HOME=$(mktemp -d)
|
export HOME=$(mktemp -d)
|
||||||
mkdir -p $HOME/.local/share/icons
|
export XDG_DATA_HOME=$tmpdata
|
||||||
ln -s $out/share/icons/Papirus-Dark $HOME/.local/share/icons/Papirus-Dark
|
|
||||||
|
|
||||||
papirus-folders -C ${closestPfColor} -t Papirus-Dark
|
papirus-folders -C ${closestPfColor} -t Papirus-Dark
|
||||||
|
|
||||||
|
mkdir -p $out/share/icons
|
||||||
|
cp -r $tmpdata/icons/Papirus-Dark $out/share/icons/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Map matugen's Material You placeholders to the closest base16 slot
|
# Map matugen's Material You placeholders to the closest base16 slot
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue