-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoverlays.nix
46 lines (36 loc) · 1.4 KB
/
overlays.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
37
38
39
40
41
42
43
44
45
46
let
# Define overlay from SHA256 and URL
addOverlay = sha256: url: let
tarball = (builtins.fetchTarball { inherit url sha256; });
in
import tarball;
# Define overlay from GitHub repo
addGitHubOverlay = repo: commit: sha256: let
tarballUrl = "https://github.com/${repo}/archive/${commit}.tar.gz";
in
(addOverlay sha256 tarballUrl);
in [
# Rust from Mozilla's overlay
#(addGitHubOverlay
# "mozilla/nixpkgs-mozilla"
# "78e723925daf5c9e8d0a1837ec27059e61649cb6"
# "0k3jxk21s28jsfpmqv39vyhfz2srfm81kp4xnpzgsbjn77rhwn03")
# Movelang.nvim (upstream)
#(let commit = "924db60a119e9464304859634141def692b3c6f6";
# url = "https://github.com/fishman/movelang.nvim/archive/${commit}.tar.gz";
# sha256 = "12yk8i3b3dxpl8mxy5m19prg5mzpkm9lbrnlq301fs1ffxid9qsv";
# source = builtins.fetchTarball { inherit url sha256; };
# overlay = import "${source}/nix/plugin-overlay.nix";
#in (overlay { name = "movelang"; self = source; }))
# Movelang.nvim (vendored)
(let source = ./packages/ide/movelang.nvim;
overlay = import "${source}/nix/plugin-overlay.nix";
in (overlay { name = "movelang"; self = source; }))
# Neovim nightly
#(ghOverlay
#"nix-community/neovim-nightly-overlay"
#"2a37ff325707cbe46dab1ff1d89ed340e46cd440"
#"0l109bmmnbby7szp3inh9czvla26czxmcwndyjfc8zkkmad3qlw7")
# Our custom packages
(import ./packages/overlay.nix)
]