They seem to generally not work if the rev we're fetching is not current. That failure mode is particularly problematic because already having the rev cached avoids the failure: fetches work initially, when the pinned commit is the current one, then break after upstream commits. I could disable repository caching in CI, but that would turn it into a game of whack-a-mole: this breaks on upstream repository commits, not flake updates. The downside is increased disk usage. This can be partially mitigated by enabling experimentalFetchTree, which fetches snapshots. Force shallow false to work around https://github.com/NixOS/nix/issues/11012 (Nix 2.23 default to shallow fetches). We should be able to remove that if Nix adds the fallback they're planning to add. Hopefully fixes #14 once and for all.
45 lines
2.1 KiB
Nix
45 lines
2.1 KiB
Nix
# Copyright 2024 Google LLC
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
# Data loaded by default.nix.
|
|
{
|
|
extraUrls = {
|
|
# Straight recipe from el-get
|
|
font-lock-ext = "https://github.com/sensorflo/font-lock-ext.git";
|
|
sln-mode = "https://github.com/sensorflo/sln-mode.git";
|
|
# Straight recipe from emacsmirror-mirror
|
|
# (emacsmirror-mirror includes emacsattic, emacs-overlay does not...)
|
|
nose = "https://github.com/emacsattic/nose.git";
|
|
ob-ammonite = "https://github.com/emacsattic/ob-ammonite.git";
|
|
ammonite-term-repl = "https://github.com/emacsattic/ammonite-term-repl.git";
|
|
# In nixpkgs, but uses codeberg, for which nixpkgs uses fetchzip.
|
|
# TODO: consider parsing origEPkg.src.url instead.
|
|
tree-sitter-indent = "https://codeberg.org/FelipeLema/tree-sitter-indent.el.git";
|
|
undo-fu = "https://codeberg.org/ideasman42/emacs-undo-fu.git";
|
|
undo-fu-session = "https://codeberg.org/ideasman42/emacs-undo-fu-session.git";
|
|
consult-notmuch = "https://codeberg.org/jao/consult-notmuch.git";
|
|
# sourcehut fetcher doesn't work for the same reason codeberg doesn't.
|
|
fennel-mode = "https://git.sr.ht/~technomancy/fennel-mode";
|
|
# nixpkgs uses a release from nongnu ELPA.
|
|
corfu-terminal = "https://codeberg.org/akib/emacs-corfu-terminal";
|
|
};
|
|
|
|
# Pins for packages not pinned by Doom and not in nixpkgs or emacs-overlay.
|
|
extraPins = {
|
|
# Looks stable enough we can get away with pinning it.
|
|
sly-stepper = "da84e3bba8466c2290c2dc7c27d7f4c48c27b39e";
|
|
# In emacsattic, so shouldn't change underneath us.
|
|
ammonite-term-repl = "b552fe21977e005c1c460bf6607557e67241a6b6";
|
|
};
|
|
}
|