2024-06-08 23:40:44 -04:00
|
|
|
{
|
2025-02-18 15:19:08 -05:00
|
|
|
# nix build inputs
|
|
|
|
lib,
|
2024-06-08 23:40:44 -04:00
|
|
|
stdenv,
|
2024-06-13 22:27:54 -04:00
|
|
|
mkVersion,
|
2025-02-18 15:19:08 -05:00
|
|
|
git-theme-src,
|
2024-06-08 23:40:44 -04:00
|
|
|
...
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "dracula-git";
|
2024-06-13 22:27:54 -04:00
|
|
|
version = mkVersion git-theme-src;
|
2024-06-08 23:40:44 -04:00
|
|
|
|
|
|
|
src = git-theme-src;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
chmod 777 ./config/gitconfig
|
|
|
|
|
|
|
|
# Remove every line above 'Dracula Dark Theme'
|
|
|
|
line=$(grep -n 'Dracula Dark Theme' ./config/gitconfig | cut -d: -f1)
|
|
|
|
sed -i "1,$((line-1))d" ./config/gitconfig
|
|
|
|
|
|
|
|
cat ./config/gitconfig > $out
|
|
|
|
'';
|
2025-02-18 15:19:08 -05:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
homepage = "https://github.com/dracula/git";
|
|
|
|
description = ''
|
|
|
|
Dark theme for Git.
|
|
|
|
'';
|
|
|
|
};
|
2024-06-08 23:40:44 -04:00
|
|
|
}
|