default.nix (1030B)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
{ lib, pkgs, ... }: with pkgs; let metadata = import ./metadata.nix; in stdenv.mkDerivation rec { pname = "hyprscrolloverview"; version = metadata.rev; src = fetchFromGitHub { owner = "yayuuu"; repo = "hyprland-scroll-overview"; inherit (metadata) rev sha256; }; inherit (hyprland) buildInputs; nativeBuildInputs = hyprland.nativeBuildInputs ++ [ hyprland gcc14 pkg-config lua5_4 ]; enableParallelBuilding = true; buildPhase = '' runHook preBuild export SCROLLOVERVIEW_BUILD_VERSION="${metadata.rev}" make all runHook postBuild ''; installPhase = '' runHook preInstall mkdir -p "$out/lib" cp libscrolloverview.so "$out/lib/lib${pname}.so" runHook postInstall ''; meta = { homepage = metadata.repo; description = "Hyprland plugin for workspace overview"; license = lib.licenses.gpl3Only; maintainers = ["maydayv7"]; }; }