35 lines
720 B
Nix
35 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;
|
||
|
};
|
||
|
}
|