42 lines
913 B
Nix
42 lines
913 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
unstableGitUpdater,
|
|
stdenvNoCC,
|
|
...
|
|
}:
|
|
|
|
stdenvNoCC.mkDerivation (self: {
|
|
pname = "alacritty-theme";
|
|
version = "0-unstable-2024-12-02";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "alacritty";
|
|
repo = "alacritty-theme";
|
|
rev = "95a7d695605863ede5b7430eb80d9e80f5f504bc";
|
|
hash = "sha256-D37MQtNS20ESny5UhW1u6ELo9czP4l+q0S8neH7Wdbc=";
|
|
};
|
|
|
|
dontConfigure = true;
|
|
dontBuild = true;
|
|
preferLocalBuild = true;
|
|
|
|
sourceRoot = "${self.src.name}/themes";
|
|
installPhase = ''
|
|
runHook preInstall
|
|
install -Dt $out *.toml
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.updateScript = unstableGitUpdater {
|
|
hardcodeZeroVersion = true;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Collection of Alacritty color schemes";
|
|
homepage = "https://alacritty.org/";
|
|
license = licenses.asl20;
|
|
maintainers = [ maintainers.nicoo ];
|
|
platforms = platforms.all;
|
|
};
|
|
})
|