parent
05acdb8610
commit
0905c1525a
|
@ -0,0 +1,7 @@
|
|||
{stdenv, theme}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "theme";
|
||||
builder = ./unpack-theme.sh;
|
||||
inherit theme;
|
||||
}
|
|
@ -14,3 +14,5 @@ for i in $out/$themeName/config/*.cfg; do
|
|||
done
|
||||
|
||||
rm $out/$themeName/config/*.cfg
|
||||
|
||||
ln -s $themeName $out/default
|
|
@ -23,7 +23,7 @@ for ((n = 0; n < ${#ttys[*]}; n++)); do
|
|||
|
||||
echo "TTY $tty -> $theme"
|
||||
|
||||
themeName=$(cd $theme && ls)
|
||||
themeName=$(cd $theme && ls | grep -v default)
|
||||
|
||||
ln -sf $theme/$themeName $out/$themeName
|
||||
|
||||
|
|
|
@ -3,10 +3,8 @@
|
|||
rec {
|
||||
name = "tty-backgrounds";
|
||||
|
||||
unpackTheme = theme: stdenv.mkDerivation {
|
||||
name = "theme";
|
||||
builder = ./unpack-theme.sh;
|
||||
inherit theme;
|
||||
unpackTheme = theme: import ../helpers/unpack-theme.nix {
|
||||
inherit stdenv theme;
|
||||
};
|
||||
|
||||
themesUnpacked = stdenv.mkDerivation {
|
||||
|
|
Loading…
Reference in New Issue