-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.nix
64 lines (57 loc) · 3.85 KB
/
default.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# This file describes your repository contents.
# It should return a set of nix derivations
# and optionally the special attributes `lib`, `modules` and `overlays`.
# It should NOT import <nixpkgs>. Instead, you should take pkgs as an argument.
# Having pkgs default to <nixpkgs> is fine though, and it lets you use short
# commands such as:
# nix-build -A mypackage
{ pkgs ? import <nixpkgs> { } }:
let
allPkgs = pkgs // myPkgs;
callPackage = path: overrides:
let f = import path;
in f ((builtins.intersectAttrs (builtins.functionArgs f) allPkgs) // overrides);
myPkgs = rec {
# The `lib`, `modules`, and `overlay` names are special
lib = pkgs.lib // import ./lib { inherit pkgs; }; # functions
modules = import ./modules; # NixOS modules
overlays = import ./overlays; # nixpkgs overlays
mySources = callPackage ./_sources/generated.nix { };
# https://github.com/NixOS/nixpkgs/pull/243429
netease-cloud-music = callPackage ./pkgs/applications/audio/netease-cloud-music { };
rime-japanese = callPackage ./pkgs/data/misc/rime-japanese { };
rime-kaomoji = callPackage ./pkgs/data/misc/rime-kaomoji { };
gdb-prompt = callPackage ./pkgs/development/libraries/gdb-prompt { };
tcl-prompt = callPackage ./pkgs/development/libraries/tcl-prompt { };
bash-prompt = callPackage ./pkgs/shells/bash/bash-prompt { };
undollar = callPackage ./pkgs/tools/misc/undollar { };
manpager = callPackage ./pkgs/tools/misc/manpager { };
# https://github.com/NixOS/nixpkgs/issues/261342
repl-python-wakatime = callPackage ./pkgs/development/python-modules/repl-python-wakatime { };
translate-shell = callPackage ./pkgs/development/python-modules/translate-shell { };
mulimgviewer = callPackage ./pkgs/development/python-modules/mulimgviewer { };
stardict-ecdict = callPackage ./pkgs/data/misc/stardict-ecdict { };
stardict-jmdict-en-ja = callPackage ./pkgs/data/misc/stardict-jmdict-en-ja { };
stardict-jmdict-ja-en = callPackage ./pkgs/data/misc/stardict-jmdict-ja-en { };
stardict-langdao-ce-gb = callPackage ./pkgs/data/misc/stardict-langdao-ce-gb { };
stardict-langdao-ec-gb = callPackage ./pkgs/data/misc/stardict-langdao-ec-gb { };
windows10-themes = callPackage ./pkgs/data/misc/windows10-themes { };
lsp-tree-sitter = callPackage ./pkgs/development/python-modules/lsp-tree-sitter { };
tree-sitter-muttrc = callPackage ./pkgs/development/python-modules/tree-sitter-muttrc { };
mutt-language-server = callPackage ./pkgs/development/python-modules/mutt-language-server { };
tree-sitter-tmux = callPackage ./pkgs/development/python-modules/tree-sitter-tmux { };
tmux-language-server = callPackage ./pkgs/development/python-modules/tmux-language-server { };
tree-sitter-zathurarc = callPackage ./pkgs/development/python-modules/tree-sitter-zathurarc { };
zathura-language-server = callPackage ./pkgs/development/python-modules/zathura-language-server { };
# https://github.com/tree-sitter-grammars/tree-sitter-requirements/issues/3
# tree-sitter-requirements = callPackage ./pkgs/development/python-modules/tree-sitter-requirements { };
# requirements-language-server = callPackage ./pkgs/development/python-modules/requirements-language-server { };
tree-sitter-languages = callPackage ./pkgs/development/python-modules/tree-sitter-languages { };
termux-language-server = callPackage ./pkgs/development/python-modules/termux-language-server { };
autotools-language-server = callPackage ./pkgs/development/python-modules/autotools-language-server { };
expect-language-server = callPackage ./pkgs/development/python-modules/expect-language-server { };
sublime-syntax-language-server = callPackage ./pkgs/development/python-modules/sublime-syntax-language-server { };
xilinx-language-server = callPackage ./pkgs/development/python-modules/xilinx-language-server { };
};
in
myPkgs