summary refs log tree commit diff
path: root/pkgs/data/themes/alacritty-theme/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/data/themes/alacritty-theme/default.nix')
-rw-r--r--pkgs/data/themes/alacritty-theme/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/data/themes/alacritty-theme/default.nix b/pkgs/data/themes/alacritty-theme/default.nix
new file mode 100644
index 00000000000..203b260e251
--- /dev/null
+++ b/pkgs/data/themes/alacritty-theme/default.nix
@@ -0,0 +1,40 @@
+{ lib
+, fetchFromGitHub
+, nix-update-script
+, stdenvNoCC
+, ... }:
+
+stdenvNoCC.mkDerivation (self: {
+  name = "alacritty-theme";
+  version = "unstable-2023-10-26";
+
+  src = fetchFromGitHub {
+    owner = "alacritty";
+    repo = "alacritty-theme";
+    rev = "e1b08b5bc06d07dd65f5e72b12fd7f736e0e7928";
+    hash = "sha256-wf0aT2uGe/6Ifv//lQStTm24yt2FX3kWQq5ebdmdPJ0=";
+  };
+
+  dontConfigure = true;
+  dontBuild = true;
+  preferLocalBuild = true;
+
+  sourceRoot = "${self.src.name}/themes";
+  installPhase = ''
+    runHook preInstall
+    install -Dt $out *.yaml
+    runHook postInstall
+  '';
+
+  passthru.updateScript = nix-update-script {
+    extraArgs = [ "--version=branch" ];
+  };
+
+  meta = with lib; {
+    description = "Collection of Alacritty color schemes";
+    homepage = "https://alacritty.org/";
+    license = licenses.asl20;
+    maintainers = [ maintainers.nicoo ];
+    platforms = platforms.all;
+  };
+})