pankomacs/flake.nix

35 lines
857 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 = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-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; } {
systems = [
"x86_64-linux"
];
2024-07-17 04:09:08 +01:00
perSystem = { pkgs, self', config, system, ... }: {
_module.args.pkgs = import inputs.nixpkgs {
inherit system;
overlays = [
(import inputs.emacs)
];
};
packages.pankomacs = pkgs.callPackage ./package/package.nix { };
packages.default = self'.packages.pankomacs;
2024-07-17 04:09:08 +01:00
formatter = pkgs.nixpkgs-fmt;
2024-07-17 04:09:08 +01:00
};
};
}