depot/third_party/nixpkgs/pkgs/data/themes/alacritty-theme/default.nix
Default email 83627f9931 Project import generated by Copybara.
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
2024-06-24 14:47:55 -04:00

40 lines
907 B
Nix

{ lib
, fetchFromGitHub
, unstableGitUpdater
, stdenvNoCC
, ... }:
stdenvNoCC.mkDerivation (self: {
pname = "alacritty-theme";
version = "0-unstable-2024-06-17";
src = fetchFromGitHub {
owner = "alacritty";
repo = "alacritty-theme";
rev = "a4041aeea19d425b63f7ace868917da26aa189bd";
hash = "sha256-A5Xlu6kqB04pbBWMi2eL+pp6dYi4MzgZdNVKztkJhcg=";
};
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;
};
})