mirror of
https://github.com/youwen5/liminalOS.git
synced 2025-06-20 05:59:51 -07:00
60 lines
1.5 KiB
Nix
60 lines
1.5 KiB
Nix
|
{
|
||
|
lib,
|
||
|
fetchFromGitHub,
|
||
|
hyprland,
|
||
|
pkg-config,
|
||
|
cmake,
|
||
|
unstableGitUpdater,
|
||
|
}:
|
||
|
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 {
|
||
|
pluginName = "hyprscroller";
|
||
|
version = "0-unstable-2025-05-16";
|
||
|
|
||
|
src = fetchFromGitHub {
|
||
|
owner = "cpiber";
|
||
|
repo = "hyprscroller";
|
||
|
rev = "de97924b6d1086d84939b6f6688637f7b21d8d80";
|
||
|
hash = "sha256-m9689UH+w8Z/qP/DKYtzQfIGfiE4jgBAfO+uH34cfNs=";
|
||
|
};
|
||
|
|
||
|
nativeBuildInputs = [ cmake ];
|
||
|
|
||
|
installPhase = ''
|
||
|
runHook preInstall
|
||
|
|
||
|
mkdir -p $out/lib
|
||
|
mv hyprscroller.so $out/lib/libhyprscroller.so
|
||
|
|
||
|
runHook postInstall
|
||
|
'';
|
||
|
|
||
|
passthru.updateScript = unstableGitUpdater { };
|
||
|
|
||
|
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;
|
||
|
};
|
||
|
}
|