feat(flake, eat): remove flake-parts, add eat

This commit is contained in:
Artur Manuel 2025-03-16 20:04:03 +00:00
commit 465da6e488
Signed by: amadaluzia
SSH key fingerprint: SHA256:Zwg7gBuZyaG48ucAZneJwltiXu0+tJb7c3lYt9AYlLg
4 changed files with 86 additions and 102 deletions

View file

@ -2,35 +2,36 @@
description = "Pankomacs";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
emacs = {
url = "github:nix-community/emacs-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs = inputs:
inputs.parts.lib.mkFlake {
inherit inputs;
} {
outputs =
inputs:
let
inherit (inputs.nixpkgs) lib;
systems = [
"x86_64-linux"
];
imports = [
./lib.nix
];
perSystem = {pkgs, ...}: {
formatter = pkgs.alejandra;
packages = {
pgtk = inputs.self.lib.mkEmacs {
inherit pkgs;
emacs = pkgs.emacs30-pgtk;
forAllSystems = lib.genAttrs systems;
pkgs = builtins.listToAttrs (
map (system: {
name = system;
value = import inputs.nixpkgs {
inherit system;
};
}) systems
);
in
{
lib = import ./lib.nix inputs;
formatter = forAllSystems (system: pkgs.${system}.nixfmt-rfc-style);
packages = forAllSystems (system: {
pgtk = inputs.self.lib.mkPankomacs {
pkgs = pkgs.${system};
emacs = pkgs.${system}.emacs30-pgtk;
};
};
});
};
}