-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
36 lines (30 loc) · 1.01 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
inputs = {
nixpkgs.url = github:NixOS/nixpkgs/nixos-24.05;
nixpkgs_darwin.url = github:NixOS/nixpkgs/nixpkgs-24.05-darwin;
};
outputs = { self, nixpkgs, nixpkgs_darwin }: let
version = self.rev or "dirty";
packages = nixpkgs: sys: emacs-flavor: let
pkgs = import nixpkgs { system = sys; };
epkgs = pkgs.emacsPackagesFor (emacs-flavor pkgs);
gh-autolinks = epkgs.elpaBuild {
pname = "gh-autolinks";
ename = "gh-autlinks";
version = version;
src = [ ./gh-autolinks.el ];
packageRequires = [];
meta = {};
};
in {
default = gh-autolinks;
};
in {
packages = {
"x86_64-darwin" = packages nixpkgs_darwin "x86_64-darwin" (pkgs: pkgs.emacs29-macport);
"aarch64-darwin" = packages nixpkgs_darwin "aarch64-darwin" (pkgs: pkgs.emacs29-macport);
"x86_64-linux" = packages nixpkgs "x86_64-linux" (pkgs: pkgs.emacs29);
"aarch64-linux" = packages nixpkgs "aarch64-linux" (pkgs: pkgs.emacs29);
};
};
}