mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 11:26:00 +01:00
remove patch and move default.nix
This commit is contained in:
parent
aca5dba7a1
commit
2342b6a10f
6 changed files with 3 additions and 84 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -10,7 +10,7 @@ CTestTestfile.cmake
|
|||
_deps
|
||||
|
||||
build/
|
||||
result/
|
||||
result
|
||||
/.vscode/
|
||||
|
||||
*.o
|
||||
|
|
2
Makefile
2
Makefile
|
@ -97,7 +97,7 @@ all:
|
|||
|
||||
install:
|
||||
make all
|
||||
mkdir -p /usr/share/wayland-sessions
|
||||
mkdir -p ${PREFIX}/share/wayland-sessions
|
||||
cp ./example/hyprland.desktop ${PREFIX}/share/wayland-sessions/
|
||||
cp ./build/Hyprland ${PREFIX}/bin
|
||||
cp ./hyprctl/hyprctl ${PREFIX}/bin
|
||||
|
|
|
@ -25,10 +25,7 @@ stdenv.mkDerivation {
|
|||
dontBuild = true;
|
||||
dontInstall = true;
|
||||
|
||||
patches = [ ./fix-makefile.diff ];
|
||||
|
||||
postPatch = ''
|
||||
mkdir -p $out/bin
|
||||
make install PREFIX=$out
|
||||
'';
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
version = "git";
|
||||
in rec {
|
||||
packages = {
|
||||
hyprland = pkgs.callPackage ./nix-build {
|
||||
hyprland = pkgs.callPackage self {
|
||||
inherit version;
|
||||
src = self;
|
||||
inherit (nixpkgs-wayland.packages.${system}) wlroots;
|
||||
|
|
|
@ -1,42 +0,0 @@
|
|||
{ lib, stdenv, fetchFromGitHub, src, version, pkg-config, cmake, ninja, libdrm
|
||||
, libinput, libxcb, libxkbcommon, mesa, mount, pango, wayland, wayland-protocols
|
||||
, wayland-scanner, wlroots, xcbutilwm, xwayland, xwaylandSupport ? true }:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "hyprland";
|
||||
inherit src version;
|
||||
|
||||
nativeBuildInputs = [ cmake ninja pkg-config wayland ]
|
||||
++ lib.optional xwaylandSupport xwayland;
|
||||
|
||||
buildInputs = [
|
||||
libdrm
|
||||
libinput
|
||||
libxcb
|
||||
libxkbcommon
|
||||
mesa
|
||||
pango
|
||||
wayland-protocols
|
||||
wayland-scanner
|
||||
wlroots
|
||||
xcbutilwm
|
||||
];
|
||||
|
||||
dontBuild = true;
|
||||
dontInstall = true;
|
||||
|
||||
patches = [ ./fix-makefile.diff ];
|
||||
|
||||
postPatch = ''
|
||||
mkdir -p $out/bin
|
||||
make install PREFIX=$out
|
||||
'';
|
||||
|
||||
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;
|
||||
};
|
||||
}
|
|
@ -1,36 +0,0 @@
|
|||
diff --git a/Makefile b/Makefile
|
||||
index bcf3a10..0a5b335 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -97,14 +97,14 @@ all:
|
||||
|
||||
install:
|
||||
make all
|
||||
- mkdir -p /usr/share/wayland-sessions
|
||||
- cp ./example/hyprland.desktop /usr/share/wayland-sessions/
|
||||
- cp ./build/Hyprland /usr/bin
|
||||
- cp ./hyprctl/hyprctl /usr/bin
|
||||
- mkdir -p /usr/share/hyprland
|
||||
- cp ./assets/wall_2K.png /usr/share/hyprland
|
||||
- cp ./assets/wall_4K.png /usr/share/hyprland
|
||||
- cp ./assets/wall_8K.png /usr/share/hyprland
|
||||
+ mkdir -p $(PREFIX)/share/wayland-sessions
|
||||
+ cp ./example/hyprland.desktop $(PREFIX)/share/wayland-sessions/
|
||||
+ cp ./build/Hyprland $(PREFIX)/bin
|
||||
+ cp ./hyprctl/hyprctl $(PREFIX)/bin
|
||||
+ mkdir -p $(PREFIX)/share/hyprland
|
||||
+ cp ./assets/wall_2K.png $(PREFIX)/share/hyprland
|
||||
+ cp ./assets/wall_4K.png $(PREFIX)/share/hyprland
|
||||
+ cp ./assets/wall_8K.png $(PREFIX)/share/hyprland
|
||||
|
||||
uninstall:
|
||||
rm -f /usr/share/wayland-sessions/hyprland.desktop
|
||||
diff --git a/config.mk b/config.mk
|
||||
index 91aca81..c40930e 100644
|
||||
--- a/config.mk
|
||||
+++ b/config.mk
|
||||
@@ -1,4 +1,4 @@
|
||||
-PREFIX = /usr/local
|
||||
+PREFIX = @out@
|
||||
CFLAGS ?= -g -Wall -Wextra -Werror -Wno-unused-parameter -Wno-sign-compare -Wno-unused-function -Wno-unused-variable -Wno-unused-result -Wdeclaration-after-statement
|
||||
CFLAGS += -DXWAYLAND
|
Loading…
Reference in a new issue