This commit is contained in:
parent
e5407513a3
commit
19813ee0b1
1 changed files with 7 additions and 11 deletions
|
|
@ -83,20 +83,16 @@
|
|||
papirusDark = pkgs.runCommand "papirus-dark-${closestPfColor}" {
|
||||
nativeBuildInputs = [ pkgs.papirus-folders ];
|
||||
} ''
|
||||
# Work in a fully writable temp tree so papirus-folders can find and
|
||||
# modify the theme without fighting the nix sandbox path structure.
|
||||
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
|
||||
# Copy theme to a writable temp dir and pass its absolute path to
|
||||
# papirus-folders so it bypasses XDG lookup entirely.
|
||||
themedir=$(mktemp -d)/Papirus-Dark
|
||||
cp -r ${pkgs.papirus-icon-theme}/share/icons/Papirus-Dark "$themedir"
|
||||
chmod -R u+w "$themedir"
|
||||
|
||||
export HOME=$(mktemp -d)
|
||||
export XDG_DATA_HOME=$tmpdata
|
||||
|
||||
papirus-folders -C ${closestPfColor} -t Papirus-Dark
|
||||
papirus-folders -C ${closestPfColor} -t "$themedir"
|
||||
|
||||
mkdir -p $out/share/icons
|
||||
cp -r $tmpdata/icons/Papirus-Dark $out/share/icons/
|
||||
cp -r "$themedir" $out/share/icons/Papirus-Dark
|
||||
'';
|
||||
|
||||
# Map matugen's Material You placeholders to the closest base16 slot
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue