mirror of
https://github.com/fairyglade/ly.git
synced 2026-11-05 09:41:43 +00:00
## What are the changes about? This PR adds a flake.nix and flake.lock to provide a reproducible development environment for ly using Nix. The development shell provides the dependencies required to build ly: - zig - pam - xcb ## 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/1066 Reviewed-by: AnErrupTion <anerruption+codeberg@disroot.org>
33 lines
665 B
Nix
33 lines
665 B
Nix
{
|
|
description = "Ly - A lightweight TUI (ncurses-like) display manager for Linux and BSD";
|
|
|
|
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
|
|
|
outputs = { nixpkgs, ... }:
|
|
let
|
|
systems = [
|
|
"x86_64-linux"
|
|
"aarch64-linux"
|
|
"i686-linux"
|
|
];
|
|
|
|
forAllSystems = nixpkgs.lib.genAttrs systems;
|
|
in
|
|
{
|
|
devShells = forAllSystems (system:
|
|
let
|
|
pkgs = nixpkgs.legacyPackages.${system};
|
|
in
|
|
{
|
|
default = pkgs.mkShell {
|
|
packages = with pkgs; [
|
|
zig
|
|
pam
|
|
libxcb
|
|
];
|
|
};
|
|
}
|
|
);
|
|
};
|
|
}
|