From bb798fbfdfb6079a59fceccff00dea226b018942 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Sat, 6 Aug 2022 20:16:17 -0300 Subject: [PATCH] alacritty: enable sixel support --- flake.lock | 17 +++++++++++++++++ flake.nix | 14 ++++++++++++-- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/flake.lock b/flake.lock index 58ae5e2..cd3b10d 100644 --- a/flake.lock +++ b/flake.lock @@ -1,5 +1,21 @@ { "nodes": { + "alacritty-sixel": { + "flake": false, + "locked": { + "lastModified": 1651472856, + "narHash": "sha256-8SQgnB6q7sXeXcIzum/NAUj3mju7IERreXHMvt2cQEc=", + "owner": "microo8", + "repo": "alacritty-sixel", + "rev": "513e6a90c2fd0a019b214dab96c4e211d151a2f9", + "type": "github" + }, + "original": { + "owner": "microo8", + "repo": "alacritty-sixel", + "type": "github" + } + }, "dhist": { "inputs": { "fenix": "fenix", @@ -140,6 +156,7 @@ }, "root": { "inputs": { + "alacritty-sixel": "alacritty-sixel", "dhist": "dhist", "home-manager": "home-manager", "nixpkgs": "nixpkgs_2", diff --git a/flake.nix b/flake.nix index 9972d17..c58a5bd 100644 --- a/flake.nix +++ b/flake.nix @@ -7,10 +7,13 @@ home-manager.inputs.nixpkgs.follows = "nixpkgs"; nur.url = "github:nix-community/NUR"; + alacritty-sixel.url = "github:microo8/alacritty-sixel"; + alacritty-sixel.flake = false; + # my stuff dhist.url = "github:lelgenio/dhist"; }; - outputs = { nixpkgs, nixpkgs-unstable, home-manager, nur, dhist, ... }: + outputs = { nixpkgs, nixpkgs-unstable, home-manager, alacritty-sixel, nur, dhist, ... }: let system = "x86_64-linux"; pkgs = import nixpkgs { @@ -33,12 +36,19 @@ nixpkgs.overlays = [ overlay-unstable nur.overlay - (_: _: { + (_: old-pkgs: { dhist = dhist.packages.${system}.dhist; bmenu = import ./bmenu.nix { inherit config pkgs lib; }; _diffr = import ./diffr.nix { inherit config pkgs lib; }; kak-pager = import ./kak-pager.nix { inherit config pkgs lib; }; terminal = import ./terminal.nix { inherit config pkgs lib; }; + alacritty = (old-pkgs.alacritty.overrideAttrs (old-alacritty: rec { + src = alacritty-sixel; + cargoDeps = old-alacritty.cargoDeps.overrideAttrs (old-pkgs.lib.const { + inherit src; + outputHash = "sha256-aNatd4LC4lv0bDpVfUONdtEn9OPahVBZ9ch14pWWCnM="; + }); + })); }) ]; })