zayneko/flake.nix
2025-05-18 00:27:28 +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;
};
}