extract sixel patch into separate file

This commit is contained in:
Leonardo Eugênio 2022-12-13 12:50:11 -03:00
parent e5eadc10fa
commit b26d20106b
2 changed files with 22 additions and 22 deletions

View file

@ -7,32 +7,18 @@
(final: prev: { (final: prev: {
unstable = inputs.nixpkgs-unstable.legacyPackages.${prev.system}; unstable = inputs.nixpkgs-unstable.legacyPackages.${prev.system};
}) })
(import ./sixel-patches.nix (inputs // { inherit pkgs; }))
(final: prev: { (final: prev: {
uservars = import ../user/variables.nix; uservars = import ../user/variables.nix;
dhist = inputs.dhist.packages.${system}.dhist; dhist = inputs.dhist.packages.${system}.dhist;
mpvpaper = inputs.wegank.packages.${prev.system}.mpvpaper; mpvpaper = inputs.wegank.packages.${prev.system}.mpvpaper;
sea-orm-cli = sea-orm-cli =
inputs.sea-orm-cli.legacyPackages.${prev.system}.sea-orm-cli; inputs.sea-orm-cli.legacyPackages.${prev.system}.sea-orm-cli;
webcord = webcord = inputs.webcord.legacyPackages.${prev.system}.webcord;
inputs.webcord.legacyPackages.${prev.system}.webcord;
nil-lsp = inputs.nil-lsp.packages.${prev.system}.nil; nil-lsp = inputs.nil-lsp.packages.${prev.system}.nil;
alacritty = (prev.unstable.alacritty.overrideAttrs (old-alacritty: rec {
src = inputs.alacritty-sixel;
cargoDeps = old-alacritty.cargoDeps.overrideAttrs (prev.lib.const {
inherit src;
outputHash = "sha256-jqjYMVkH32z5EFgafiOYAOc5Q/IYs0jjJeqRb0L6WsY=";
});
}));
ranger = (prev.ranger.overridePythonAttrs (old-ranger: rec {
src = inputs.ranger-sixel;
checkInputs = [ ];
propagatedBuildInputs = with prev.python3Packages;
old-ranger.propagatedBuildInputs ++ [ astroid pylint pytest ];
}));
sway-unwrapped = prev.sway-unwrapped.overrideAttrs (old: { sway-unwrapped = prev.sway-unwrapped.overrideAttrs (old: {
patches = old.patches ++ [ patches = old.patches
../patches/sway/fix-hide_cursor-clearing-focus.patch ++ [ ../patches/sway/fix-hide_cursor-clearing-focus.patch ];
];
}); });
material-wifi-icons = final.stdenv.mkDerivation rec { material-wifi-icons = final.stdenv.mkDerivation rec {
name = "material-wifi-icons"; name = "material-wifi-icons";
@ -50,10 +36,7 @@
nerdfonts_fira_hack = nerdfonts_fira_hack =
(final.nerdfonts.override { fonts = [ "FiraCode" "Hack" ]; }); (final.nerdfonts.override { fonts = [ "FiraCode" "Hack" ]; });
steam = prev.steam.override { steam = prev.steam.override {
extraPkgs = pkgs: with pkgs; [ extraPkgs = pkgs: with pkgs; [ capitaine-cursors bibata-cursors ];
capitaine-cursors
bibata-cursors
];
}; };
}) })
]; ];

View file

@ -0,0 +1,17 @@
inputs@{ pkgs, ... }:
(final: prev: {
alacritty = (prev.unstable.alacritty.overrideAttrs (old-alacritty: rec {
src = inputs.alacritty-sixel;
cargoDeps = old-alacritty.cargoDeps.overrideAttrs (prev.lib.const {
inherit src;
outputHash = "sha256-jqjYMVkH32z5EFgafiOYAOc5Q/IYs0jjJeqRb0L6WsY=";
});
}));
ranger = (prev.ranger.overridePythonAttrs (old-ranger: rec {
src = inputs.ranger-sixel;
checkInputs = [ ];
propagatedBuildInputs = with prev.python3Packages;
old-ranger.propagatedBuildInputs ++ [ astroid pylint pytest ];
}));
})