mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-01 01:33:20 +00:00
* Refactoring.
svn path=/nixu/trunk/; revision=7142
This commit is contained in:
parent
05acdb8610
commit
0905c1525a
7
test/helpers/unpack-theme.nix
Normal file
7
test/helpers/unpack-theme.nix
Normal file
@ -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
Block a user