mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-02-16 17:50:52 +01:00
packages: Add hyprscroller
Haven't tested but this should work since it builds.
This commit is contained in:
parent
71be159fc2
commit
3e1247b1d8
44
packages/hyprscroller.nix
Normal file
44
packages/hyprscroller.nix
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
, hyprland
|
||||||
|
, pkg-config
|
||||||
|
, cmake
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
pname = "hyprscroller";
|
||||||
|
version = "0-unstable-2024-07-04";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "dawsers";
|
||||||
|
repo = "hyprscroller";
|
||||||
|
rev = "bef840b3f0fd3d37b5c1c9f2704b2efb60173184";
|
||||||
|
hash = "sha256-vkpGSseA7n0/Y+83snbEe7Z++2akdDbvv7eZzM9V3wI=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
cmake
|
||||||
|
pkg-config
|
||||||
|
hyprland
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [ hyprland ] ++ hyprland.buildInputs;
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
|
mkdir -p $out/lib
|
||||||
|
mv hyprscroller.so $out/lib/libhyprscroller.so
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = "https://github.com/dawsers/hyprscroller";
|
||||||
|
description = "Hyprland layout plugin providing a scrolling layout like PaperWM";
|
||||||
|
license = lib.licenses.mit;
|
||||||
|
maintainers = with lib.maintainers; [ donovanglover ];
|
||||||
|
platforms = lib.platforms.linux;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user