zayneko/flake.nix
faukah f77d372b77
initial commit
Signed-off-by: faukah <fau@faukah.com>
Change-Id: I6a6a69645add91c6178de9a2b56e175e3828bfca
2025-07-27 18:30:43 +02:00

34 lines
720 B
Nix

{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
};
outputs = {
self,
nixpkgs,
} @ inputs: let
inherit (inputs.nixpkgs) lib;
eachSystem = lib.genAttrs (import inputs.systems);
pkgsFor = inputs.nixpkgs.legacyPackages;
in {
devShells =
lib.mapAttrs (system: pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [
pkg-config
wayland-scanner
zig
wayland
wayland-protocols
];
shellHook = ''
export LD_LIBRARY_PATH=${pkgs.wayland}/lib:$LD_LIBRARY_PATH
'';
};
})
pkgsFor;
};
}