Skip to content

Commit

Permalink
Core: move to hyprgraphics (#570)
Browse files Browse the repository at this point in the history
* core: move to hyprgraphics

* Nix: add hyprgraphics

---------

Co-authored-by: Mihai Fufezan <mihai@fufexan.net>
  • Loading branch information
vaxerski and fufexan authored Nov 28, 2024
1 parent 578246b commit 4667f72
Show file tree
Hide file tree
Showing 14 changed files with 82 additions and 254 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ pkg_check_modules(
libdrm
gbm
hyprutils>=0.2.3
sdbus-c++>=2.0.0)
sdbus-c++>=2.0.0
hyprgraphics)

file(GLOB_RECURSE SRCFILES CONFIGURE_DEPENDS "src/*.cpp")
add_executable(hyprlock ${SRCFILES})
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ yay -S hyprlock-git # compiles from latest source
## Building

### Deps
You also need the following dependencies
You need the following dependencies
- wayland-client
- wayland-protocols
- mesa
Expand All @@ -37,6 +37,7 @@ And the development libraries for the following
- pam
- hyprlang
- hyprutils
- hyprgraphics
- libmagic (file-devel on Fedora)

Development libraries are usually suffixed with `-devel` or `-dev` in most distro repos.
Expand Down
27 changes: 27 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
systems.url = "github:nix-systems/default-linux";

hyprgraphics = {
url = "github:hyprwm/hyprgraphics";
inputs.nixpkgs.follows = "nixpkgs";
inputs.systems.follows = "systems";
inputs.hyprutils.follows = "hyprutils";
};

hyprutils = {
url = "github:hyprwm/hyprutils";
inputs.nixpkgs.follows = "nixpkgs";
Expand Down
2 changes: 2 additions & 0 deletions nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
libwebp,
libxkbcommon,
mesa,
hyprgraphics,
hyprlang,
hyprutils,
pam,
Expand Down Expand Up @@ -43,6 +44,7 @@ stdenv.mkDerivation {
libwebp
libxkbcommon
mesa
hyprgraphics
hyprlang
hyprutils
pam
Expand Down
1 change: 1 addition & 0 deletions nix/overlays.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ in {
default = inputs.self.overlays.hyprlock;

hyprlock = lib.composeManyExtensions [
inputs.hyprgraphics.overlays.default
inputs.hyprlang.overlays.default
inputs.hyprutils.overlays.default
inputs.self.overlays.sdbuscpp
Expand Down
6 changes: 6 additions & 0 deletions src/defines.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#pragma once

#include <hyprutils/memory/WeakPtr.hpp>
using namespace Hyprutils::Memory;
#define SP CSharedPointer
#define WP CWeakPointer
75 changes: 0 additions & 75 deletions src/helpers/Jpeg.cpp

This file was deleted.

8 changes: 0 additions & 8 deletions src/helpers/Jpeg.hpp

This file was deleted.

84 changes: 0 additions & 84 deletions src/helpers/Webp.cpp

This file was deleted.

8 changes: 0 additions & 8 deletions src/helpers/Webp.hpp

This file was deleted.

Loading

0 comments on commit 4667f72

Please sign in to comment.