This reverts commit2d1517e710
. This introduced a regression that was patched incorrectly in7cef671cb1
48 lines
1.2 KiB
Nix
48 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
hyprland,
|
|
pkg-config,
|
|
cmake,
|
|
version,
|
|
src,
|
|
}:
|
|
let
|
|
mkHyprlandPlugin =
|
|
hyprland:
|
|
args@{ pluginName, ... }:
|
|
hyprland.stdenv.mkDerivation (
|
|
args
|
|
// {
|
|
pname = "${pluginName}";
|
|
nativeBuildInputs = [ pkg-config ] ++ args.nativeBuildInputs or [ ];
|
|
buildInputs = [ hyprland ] ++ hyprland.buildInputs ++ (args.buildInputs or [ ]);
|
|
meta = args.meta // {
|
|
description = args.meta.description or "";
|
|
longDescription =
|
|
(args.meta.longDescription or "")
|
|
+ "\n\nPlugins can be installed via a plugin entry in the Hyprland NixOS or Home Manager options.";
|
|
};
|
|
}
|
|
);
|
|
in
|
|
mkHyprlandPlugin hyprland {
|
|
inherit version src;
|
|
pluginName = "hyprscroller";
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
mkdir -p $out/lib
|
|
mv hyprscroller.so $out/lib/libhyprscroller.so
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/cpiber/hyprscroller";
|
|
description = "Hyprland layout plugin providing a scrolling layout like PaperWM";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ youwen5 ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|