Unverified Commit e11cc503 authored by Masum Reza's avatar Masum Reza Committed by GitHub
Browse files

hyprlandPlugins.imgborders: init at 1.0.1 (#506018)

parents 2a9bb868 58e9cd46
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@ let
    { hyprspace = import ./hyprspace.nix; }
    { hyprsplit = import ./hyprsplit.nix; }
    (import ./hyprland-plugins.nix)
    { imgborders = import ./imgborders.nix; }
    (lib.optionalAttrs config.allowAliases {
      hycov = throw "hyprlandPlugins.hycov has been removed because it has been marked as broken since September 2024."; # Added 2025-10-12
      hyprscroller = throw "hyprlandPlugins.hyprscroller has been removed as the upstream project is deprecated. Consider using `hyprlandPlugins.hyprscrolling`."; # Added 2025-05-09
+42 −0
Original line number Diff line number Diff line
{
  lib,
  fetchFromCodeberg,
  mkHyprlandPlugin,
  cmake,
  nix-update-script,
}:
mkHyprlandPlugin (finalAttrs: {
  pluginName = "imgborders";
  version = "1.0.1";

  src = fetchFromCodeberg {
    owner = "zacoons";
    repo = "imgborders";
    tag = finalAttrs.version;
    hash = "sha256-fCzz4gh8pd7J6KQJB/avYcS0Z7NYpxjznPMtOwypPSQ=";
  };

  nativeBuildInputs = [
    cmake
  ];

  installPhase = ''
    runHook preInstall

    mkdir -p $out/lib
    mv imgborders.so $out/lib/libimgborders.so

    runHook postInstall
  '';

  passthru.updateScript = nix-update-script { };

  meta = {
    homepage = "https://codeberg.org/zacoons/imgborders";
    description = "Add tiling image borders to windows!";
    license = lib.licenses.unlicense;
    maintainers = with lib.maintainers; [
      mrdev023
    ];
  };
})