diff options
-rw-r--r-- | pkgs/by-name/hy/hyprlang/package.nix | 30 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 4 |
2 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/by-name/hy/hyprlang/package.nix b/pkgs/by-name/hy/hyprlang/package.nix new file mode 100644 index 0000000000000..554426f658274 --- /dev/null +++ b/pkgs/by-name/hy/hyprlang/package.nix @@ -0,0 +1,30 @@ +{ + lib, + stdenv, + fetchFromGitHub, + cmake, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "hyprlang"; + version = "0.2.1"; + + src = fetchFromGitHub { + owner = "hyprwm"; + repo = "hyprlang"; + rev = "v${finalAttrs.version}"; + hash = "sha256-KjAYC3sMyfipCHpkj0XSPw/C9KdCNlWtguQW5rEUiqo="; + }; + + nativeBuildInputs = [cmake]; + + outputs = ["out" "dev"]; + + doCheck = true; + + meta = with lib; { + homepage = "https://github.com/hyprwm/hyprlang"; + description = "The official implementation library for the hypr config language"; + license = licenses.gpl3Plus; + platforms = platforms.linux; + }; +}) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index defcb00e9c378..dc593ae485f4d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5709,6 +5709,10 @@ with pkgs; hyprland-protocols = callPackage ../applications/window-managers/hyprwm/hyprland-protocols { }; + hyprlang = callPackage ../by-name/hy/hyprlang/package.nix { + stdenv = gcc13Stdenv; + }; + hyprnome = callPackage ../applications/misc/hyprnome { }; hyprpaper = callPackage ../applications/window-managers/hyprwm/hyprpaper { }; |