-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoverlay.nix
More file actions
82 lines (74 loc) · 2.44 KB
/
Copy pathoverlay.nix
File metadata and controls
82 lines (74 loc) · 2.44 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{
lib,
doomemacs,
wallpapers,
nixpkgs,
}:
final: prev:
let
inherit (prev.stdenv.hostPlatform) system;
unstable = import nixpkgs {
inherit system;
config = {
allowUnfreePredicate =
pkg:
builtins.elem pkg.pname [
"claude-code"
"github-copilot-cli"
];
};
};
in
{
# Always get LLM coding CLIs from unstable
inherit (unstable) claude-code gemini-cli github-copilot-cli;
# The 26.05 stable revision's capitaine-cursors isn't on cache.nixos.org
# (Hydra doesn't build it on the stable channel), so it rebuilds from source
# via inkscape. Unstable's output is cached and has no runtime deps (pure
# cursor data), so this is a clean substitution.
inherit (unstable) capitaine-cursors;
agenix = prev.agenix.override {
# `age` works better than `rage` for editing .age files with SSH keys with
# passphrases as of 2023-02-16.
ageBin = "${prev.age}/bin/age";
};
gnupg240 =
let
pname = "gnupg";
version = "2.4.0";
in
prev.gnupg.overrideAttrs {
inherit pname version;
src = prev.fetchurl {
url = "mirror://gnupg/gnupg/${pname}-${version}.tar.bz2";
hash = "sha256-HXkVjdAdmSQx3S4/rLif2slxJ/iXhOosthDGAPsMFIM=";
};
};
myme = {
inherit doomemacs wallpapers;
pkgs = builtins.listToAttrs (
builtins.map (fname: {
name = final.lib.strings.removeSuffix ".nix" fname;
value = final.callPackage ./pkgs/${fname} { };
}) (lib.myme.allNixFiles ./pkgs)
);
};
# Avoid nvidia vaapi driver collisions with e.g. intel
# https://github.com/NixOS/nixpkgs/pull/165064
nvidia-vaapi-driver = prev.lib.hiPrio prev.nvidia-vaapi-driver;
}
# mailutils 3.21 fails to link on Darwin under libtool 2.6.2: the sieve
# extension modules reference libmailutils symbols without linking against it
# directly, which the two-level namespace linker rejects. Backport of the
# upstream fix (nixpkgs PR #548382), not yet on the nixos-unstable channel.
# Linux links fine and has cached builds, so only patch where it's needed --
# otherwise this forces a source build (in qemu for emulated systems).
# Drop once the channel advances past 2026-08-02.
# https://github.com/NixOS/nixpkgs/issues/548559
// prev.lib.optionalAttrs prev.stdenv.hostPlatform.isDarwin {
mailutils = prev.mailutils.overrideAttrs (old: {
patches = (old.patches or [ ]) ++ [
./pkgs/mailutils-fix-linking-with-libtool-2.6.2.patch
];
});
}