Drop flake-parts
It's not really doing much for me, and it might be getting in the way of my attempt at exposing a non-package in the `packages` flake output.
This commit is contained in:
parent
dbeda09006
commit
03769febeb
2 changed files with 12 additions and 51 deletions
28
flake.nix
28
flake.nix
|
|
@ -1,6 +1,5 @@
|
|||
{
|
||||
inputs = {
|
||||
flake-parts.url = "flake-parts";
|
||||
nixpkgs.url = "nixpkgs";
|
||||
doomemacs = {
|
||||
url = "github:doomemacs/doomemacs";
|
||||
|
|
@ -14,25 +13,22 @@
|
|||
};
|
||||
};
|
||||
|
||||
outputs = inputs@{ self, doomemacs, nixpkgs, emacs-overlay, ... }:
|
||||
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
||||
systems = [ "x86_64-linux" ];
|
||||
perSystem = { self', inputs', system, pkgs, lib, ... }:
|
||||
outputs = { doomemacs, nixpkgs, emacs-overlay, ... }: let
|
||||
systems = [ "x86_64-linux" ];
|
||||
perSystemPackages = f: nixpkgs.lib.genAttrs systems (system: f nixpkgs.legacyPackages.${system});
|
||||
in {
|
||||
packages = perSystemPackages (pkgs:
|
||||
let
|
||||
common = { doomSource = doomemacs; emacs = pkgs.emacs29-pgtk; };
|
||||
in
|
||||
{
|
||||
pkgsWithEmacsOverlay = pkgs.extend emacs-overlay.overlays.package;
|
||||
in {
|
||||
# Current Doom + NixOS 23.11 requires emacs-overlay: Doom pins
|
||||
# emacs-fish-completion, which moved from gitlab to github recently
|
||||
# enough stable nixpkgs pulls it from the wrong source.
|
||||
_module.args.pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = [ emacs-overlay.overlays.package ];
|
||||
};
|
||||
packages.doom-minimal = pkgs.callPackage ./doom.nix common;
|
||||
packages.doom-full = pkgs.callPackage ./doom.nix (common // { full = true; });
|
||||
packages.doom-example = pkgs.callPackage ./doom.nix (common // { doomDir = ./example; });
|
||||
packages.doomEmacs = args: pkgs.callPackage ./doom.nix args;
|
||||
};
|
||||
doom-minimal = pkgsWithEmacsOverlay.callPackage ./doom.nix common;
|
||||
doom-full = pkgsWithEmacsOverlay.callPackage ./doom.nix (common // { full = true; });
|
||||
doom-example = pkgsWithEmacsOverlay.callPackage ./doom.nix (common // { doomDir = ./example; });
|
||||
doomEmacs = args: pkgsWithEmacsOverlay.callPackage ./doom.nix args;
|
||||
});
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue