{ description = "A ✨fully✨ colorful customizable TUI display manager made in C for simplicity."; inputs = { flake-utils.url = "github:numtide/flake-utils"; nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; }; outputs = { flake-utils, nixpkgs, self, }: flake-utils.lib.eachDefaultSystem ( system: let pkgs = import nixpkgs { inherit system; }; name = "lidm"; version = builtins.elemAt (builtins.match "VERSION[[:blank:]]*=[[:space:]]*([^\n]*)\n.*" (builtins.readFile ./Makefile)) 0; lidm = pkgs.callPackage assets/pkg/nix/lidm.nix { inherit pkgs; lib = pkgs.lib; config = { inherit version; src = ./.; xsessions = null; wayland-sessions = null; cfg = null; # cfg = "cherry"; }; }; in rec { defaultApp = flake-utils.lib.mkApp { drv = defaultPackage; }; defaultPackage = lidm; devShell = pkgs.mkShell { buildInputs = lidm.nativeBuildInputs ++ [ pkgs.clang-tools ]; }; formatter = nixpkgs.legacyPackages.${system}.nixfmt-tree; } ) // { nixosModules.lidm = assets/pkg/nix/module.nix; }; }