* Refactoring.

svn path=/nixu/trunk/; revision=7142
This commit is contained in:
Eelco Dolstra 2006-11-26 23:54:49 +00:00
parent 05acdb8610
commit 0905c1525a
4 changed files with 12 additions and 5 deletions

View File

@ -0,0 +1,7 @@
{stdenv, theme}:
stdenv.mkDerivation {
name = "theme";
builder = ./unpack-theme.sh;
inherit theme;
}

View File

@ -14,3 +14,5 @@ for i in $out/$themeName/config/*.cfg; do
done
rm $out/$themeName/config/*.cfg
ln -s $themeName $out/default

View File

@ -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

View File

@ -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 {