hyprland: init at 0.6.0beta (#169960)
This commit is contained in:
parent
2ea8b39b22
commit
65958f1b04
3 changed files with 98 additions and 0 deletions
|
@ -13817,6 +13817,12 @@
|
|||
githubId = 28888242;
|
||||
name = "WORLDofPEACE";
|
||||
};
|
||||
wozeparrot = {
|
||||
email = "wozeparrot@gmail.com";
|
||||
github = "wozeparrot";
|
||||
githubId = 25372613;
|
||||
name = "Woze Parrot";
|
||||
};
|
||||
wr0belj = {
|
||||
name = "Jakub Wróbel";
|
||||
email = "wrobel.jakub@protonmail.com";
|
||||
|
|
79
pkgs/applications/window-managers/hyprland/default.nix
Normal file
79
pkgs/applications/window-managers/hyprland/default.nix
Normal file
|
@ -0,0 +1,79 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, cmake
|
||||
, pkg-config
|
||||
, libdrm
|
||||
, libinput
|
||||
, libxcb
|
||||
, libxkbcommon
|
||||
, mesa
|
||||
, pango
|
||||
, wayland
|
||||
, wayland-protocols
|
||||
, wayland-scanner
|
||||
, wlroots
|
||||
, xcbutilwm
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "hyprland";
|
||||
version = "0.6.1beta";
|
||||
|
||||
# When updating Hyprland, the overridden wlroots commit must be bumped to match the commit upstream uses.
|
||||
src = fetchFromGitHub {
|
||||
owner = "hyprwm";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-0Msqe2ErAJvnO1zHoB2k6TkDhTYnHRGkvJrfSG12dTU=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
wayland-scanner
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
libdrm
|
||||
libinput
|
||||
libxcb
|
||||
libxkbcommon
|
||||
mesa
|
||||
pango
|
||||
wayland
|
||||
wayland-protocols
|
||||
wlroots
|
||||
xcbutilwm
|
||||
];
|
||||
|
||||
# build with system wlroots
|
||||
postPatch = ''
|
||||
sed -Ei 's/"\.\.\/wlroots\/include\/([a-zA-Z0-9./_-]+)"/<\1>/g' src/includes.hpp
|
||||
'';
|
||||
|
||||
preConfigure = ''
|
||||
make protocols
|
||||
'';
|
||||
|
||||
postBuild = ''
|
||||
pushd ../hyprctl
|
||||
$CXX -std=c++20 -w ./main.cpp -o ./hyprctl
|
||||
popd
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
install -m755 ./Hyprland $out/bin
|
||||
install -m755 ../hyprctl/hyprctl $out/bin
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/vaxerski/Hyprland";
|
||||
description = "A dynamic tiling Wayland compositor that doesn't sacrifice on its looks";
|
||||
license = licenses.bsd3;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ wozeparrot ];
|
||||
mainProgram = "Hyprland";
|
||||
};
|
||||
}
|
|
@ -3903,6 +3903,19 @@ with pkgs;
|
|||
|
||||
humioctl = callPackage ../applications/logging/humioctl {};
|
||||
|
||||
hyprland = callPackage ../applications/window-managers/hyprland {
|
||||
wlroots = wlroots.overrideAttrs (_: {
|
||||
version = "unstable-2022-06-07";
|
||||
src = fetchFromGitLab {
|
||||
domain = "gitlab.freedesktop.org";
|
||||
owner = "wlroots";
|
||||
repo = "wlroots";
|
||||
rev = "b89ed9015c3fbe8d339e9d65cf70fdca6e5645bc";
|
||||
sha256 = "sha256-8y3u8CoigjoZOVbA2wCWBHlDNEakv0AVxU46/cOC00s=";
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
hyx = callPackage ../tools/text/hyx { };
|
||||
|
||||
icdiff = callPackage ../tools/text/icdiff {};
|
||||
|
|
Loading…
Reference in a new issue