From 4e0f23f08406f20b95146de6ce2e876918d7903d Mon Sep 17 00:00:00 2001 From: Matheus Campos Date: Sun, 4 Oct 2026 18:27:23 +0200 Subject: [PATCH] Use zig 0.17 in the Nix devShell and update the readme (#1067) ## What are the changes about? Update the nixpkgs input in flake.lock, since zig_0_17 is not available in the previous revision, use it in the devShell, bump the zig version in the readme to 0.17.x, and replace the nix build instructions (the flake has no packages output) with nix develop. ## What existing issue(s) does this resolve? N/A ## Pre-requisites - [x] I have tested & confirmed the changes work locally - [x] I have read and fully adhere to the rules set in the contributing guidelines found in `CONTRIBUTING.md` Reviewed-on: https://codeberg.org/fairyglade/ly/pulls/1067 Reviewed-by: AnErrupTion --- flake.lock | 6 +++--- flake.nix | 2 +- readme.md | 23 ++++++++++++----------- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/flake.lock b/flake.lock index 04210c1..50dd689 100644 --- a/flake.lock +++ b/flake.lock @@ -2,11 +2,11 @@ "nodes": { "nixpkgs": { "locked": { - "lastModified": 1790822859, - "narHash": "sha256-69xHQhAeMAD2wDXO7T2pcOZIF9Sga2W+JkmY2a11Ops=", + "lastModified": 1791048980, + "narHash": "sha256-KgItSKML8Xvte0B7/uGnBDsYzSnnKHcOaiUbgWBXLXw=", "owner": "nixos", "repo": "nixpkgs", - "rev": "c59305bab2065cfecc4944690d9eedbb56f3a9fa", + "rev": "a7868a727837f3c09cee2ce0ca671c76b1589fed", "type": "github" }, "original": { diff --git a/flake.nix b/flake.nix index d18a90b..d774a0f 100644 --- a/flake.nix +++ b/flake.nix @@ -21,7 +21,7 @@ { default = pkgs.mkShell { packages = with pkgs; [ - zig + zig_0_17 pam libxcb ]; diff --git a/readme.md b/readme.md index f47e247..ec99f5e 100644 --- a/readme.md +++ b/readme.md @@ -20,7 +20,7 @@ Join us on Matrix over at ### Compile-time -- zig 0.16.x (you must use a **release version** of zig; check that `zig +- zig 0.17.x (you must use a **release version** of zig; check that `zig version` does not have a `-dev*` suffix) - libc @@ -51,16 +51,6 @@ Join us on Matrix over at # dnf install kernel-devel pam-devel libxcb-devel zig xorg-x11-xauth xorg-x11-server brightnessctl ``` -#### Nix - -You can use the flake to automatically install all dependencies inside a -reproducible environment: - -```console -$ git clone https://codeberg.org/fairyglade/ly.git && cd ly -$ nix build -``` - > [!WARNING] > > Distributions using SELinux such as Fedora and openSUSE Tumbleweed may @@ -100,6 +90,17 @@ $ nix build # pkg install ca_root_nss libxcb git xorg xauth ``` +#### Nix + +Enter a development shell with all dependencies: + +```console +$ git clone https://codeberg.org/fairyglade/ly.git && cd ly +$ nix develop +``` + +Then follow [Manually building](#manually-building) from the `zig build` step. + ## Availability [![Packaging status](https://repology.org/badge/vertical-allrepos/ly-display-manager.svg?exclude_unsupported=1)](https://repology.org/project/ly-display-manager/versions)