Skip to content

Commit

Permalink
hyprland: 0.40.0-unstable-2024-05-05 -> 0.41.1
Browse files Browse the repository at this point in the history
(cherry picked from commit 0c7a9de)
  • Loading branch information
JohnRTitor authored and fufexan committed Jun 17, 2024
1 parent cdaf39c commit f70a62a
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 12 deletions.
10 changes: 5 additions & 5 deletions pkgs/by-name/hy/hyprland/info.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"branch": "",
"commit_hash": "",
"commit_message": "",
"date": "",
"tag": ""
"branch": "main",
"commit_hash": "9e781040d9067c2711ec2e9f5b47b76ef70762b3",
"commit_message": "props: bump version to 0.41.1",
"date": "2024-06-13",
"tag": "v0.41.1"
}
36 changes: 29 additions & 7 deletions pkgs/by-name/hy/hyprland/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,29 @@
, binutils
, cairo
, epoll-shim
, expat
, fribidi
, git
, hyprcursor
, hyprland-protocols
, hyprlang
, hyprutils
, hyprwayland-scanner
, jq
, libGL
, libdrm
, libdatrie
, libexecinfo
, libinput
, libselinux
, libsepol
, libthai
, libuuid
, libxkbcommon
, mesa
, pango
, pciutils
, pcre2
, pkgconf
, python3
, systemd
Expand Down Expand Up @@ -56,19 +64,22 @@ assert lib.assertMsg (!hidpiXWayland) "The option `hidpiXWayland` has been remov

stdenv.mkDerivation (finalAttrs: {
pname = "hyprland" + lib.optionalString debug "-debug";
version = "0.40.0-unstable-2024-05-05";
version = "0.41.1";

src = fetchFromGitHub {
owner = "hyprwm";
repo = finalAttrs.pname;
fetchSubmodules = true;
rev = "f15513309b24790099d42974274eb23f66f7c985";
hash = "sha256-zKOfgXPTlRqCR+EME4qjN9rgAnC3viI5KWx10dhKszw=";
rev = "refs/tags/v${finalAttrs.version}";
hash = "sha256-hLnnNBWP1Qjs1I3fndMgp8rbWJruxdnGTq77A4Rv4R4=";
};

postPatch = ''
# Fix hardcoded paths to /usr installation
sed -i "s#/usr#$out#" src/render/OpenGL.cpp
# Remove extra @PREFIX@ to fix pkg-config paths
sed -i "s#@PREFIX@/##g" hyprland.pc.in
'';

# variables used by generateVersion.sh script, and shown in `hyprctl version`
Expand Down Expand Up @@ -106,20 +117,28 @@ stdenv.mkDerivation (finalAttrs: {

buildInputs = [
cairo
expat
fribidi
git
hyprcursor
hyprcursor.dev
hyprland-protocols
hyprlang
hyprutils
libGL
libdatrie
libdrm
libinput
libselinux
libsepol
libthai
libuuid
libxkbcommon
mesa
wayland
wayland-protocols
pango
pciutils
pcre2
tomlplusplus
# for subproject wlroots-hyprland
seatd
Expand Down Expand Up @@ -162,11 +181,14 @@ stdenv.mkDerivation (finalAttrs: {

passthru.updateScript = ./update.sh;

meta = with lib; {
meta = {
homepage = "https://github.com/hyprwm/Hyprland";
description = "A dynamic tiling Wayland compositor that doesn't sacrifice on its looks";
license = licenses.bsd3;
maintainers = with maintainers; [ wozeparrot fufexan ];
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [
wozeparrot
fufexan
];
mainProgram = "Hyprland";
platforms = lib.platforms.linux;
};
Expand Down
Empty file modified pkgs/by-name/hy/hyprland/update.sh
100644 → 100755
Empty file.

0 comments on commit f70a62a

Please sign in to comment.