blob: 1be8a3f2a7660cba6d83f206c743f214717a3803 (
plain) (
tree)
|
|
{
description = "A Wayland Program";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
outputs = { self, nixpkgs }:
let
supportedSystems = [ "i686-linux" "x86_64-linux" "aarch64-linux" ];
forAllSystems = f: nixpkgs.lib.genAttrs supportedSystems (system: (forSystem system f));
forSystem = system: f: f rec {
inherit system;
pkgs = import nixpkgs { inherit system; };
lib = pkgs.lib;
};
in
{
devShells = forAllSystems ({ system, pkgs, ...}: {
default = pkgs.mkShell {
name = "wayland-program";
buildInputs = with pkgs; [ wayland ];
shellHook = ''
[ -z $WAYLAND_DISPLAY ] && export WAYLAND_DISPLAY="wayland-1"
export PS1="\033[0;33m[ ]\033[0m $PS1"
'';
};
});
};
}
|