
Signed-off-by: faukah <fau@faukah.com> Change-Id: I6a6a69645add91c6178de9a2b56e175e3828bfca
34 lines
720 B
Nix
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;
|
|
};
|
|
}
|