pankomacs/flake.nix

38 lines
898 B
Nix
Raw Normal View History

2024-07-17 04:09:08 +01:00
{
description = "Pankomacs";
2024-07-17 04:09:08 +01:00
inputs = {
2024-11-23 21:03:41 +00:00
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
2024-07-17 04:09:08 +01:00
emacs = {
url = "github:nix-community/emacs-overlay";
inputs.nixpkgs.follows = "nixpkgs";
};
};
outputs =
inputs:
let
inherit (inputs.nixpkgs) lib;
2024-07-17 04:09:08 +01:00
systems = [
"x86_64-linux"
];
forAllSystems = lib.genAttrs systems;
pkgs = builtins.listToAttrs (
map (system: {
name = system;
value = import inputs.nixpkgs {
inherit system;
2025-02-25 20:34:43 +00:00
};
}) 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;
2025-02-25 20:34:43 +00:00
};
});
2024-07-17 04:09:08 +01:00
};
}