2023-12-13 18:47:51 -05:00
|
|
|
{
|
|
|
|
stdenv,
|
2023-12-31 15:44:53 -05:00
|
|
|
git-theme-src,
|
2023-12-13 18:47:51 -05:00
|
|
|
...
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "dracula-git";
|
2024-03-25 22:42:23 -04:00
|
|
|
version = git-theme-src.shortRev;
|
2023-12-13 18:47:51 -05:00
|
|
|
|
2023-12-31 15:44:53 -05:00
|
|
|
src = git-theme-src;
|
2023-12-13 18:47:51 -05:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
# Git colors
|
|
|
|
cp -a ./config/gitconfig ./git-colors
|
|
|
|
chmod 777 ./git-colors
|
|
|
|
|
|
|
|
line=$(grep -n 'Dracula Dark Theme' ./git-colors | cut -d: -f1)
|
|
|
|
sed -i "1,$((line-1))d" ./git-colors
|
|
|
|
|
|
|
|
mkdir $out
|
|
|
|
cp -a ./git-colors $out
|
|
|
|
'';
|
|
|
|
}
|