-
Notifications
You must be signed in to change notification settings - Fork 10
/
packages.nix
59 lines (52 loc) · 1.41 KB
/
packages.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
{ pkgs, nixpkgs-src, inputs, git-src, niv-src }:
# The main homies file, where homies are defined. See the README.md for
# instructions.
let
# The "homies", which is a buildEnv where bin/ contains all the executables.
# The manpages are in share/man, which are auto-discovered by man (because
# it's close to bin/ which is on the PATH).
homies = pkgs.buildEnv {
name = "homies";
paths =
[
bashrc
git
kitty
nix
niv
neovim
pkgs.curl
pkgs.direnv
pkgs.gnupg
pkgs.nixpkgs-fmt
pkgs.fzf
pkgs.htop
pkgs.jq
pkgs.less
pkgs.haskellPackages.wai-app-static
pkgs.shellcheck
pkgs.shfmt
pkgs.tree
];
};
nix = pkgs.callPackage ./nix { };
neovim = pkgs.callPackage ./neovim { inherit inputs; };
kitty = pkgs.callPackage ./kitty { inherit inputs; };
# A custom '.bashrc' (see bashrc/default.nix for details)
bashrc = pkgs.callPackage ./bashrc { inherit nixpkgs-src; };
# Git with config baked in
git = pkgs.callPackage ./git (
{
inherit git-src;
});
niv =
let
# Workaround for https://github.com/NixOS/nixpkgs/issues/140774
fixCyclicReference = drv:
pkgs.haskell.lib.overrideCabal drv (_: {
enableSeparateBinOutput = false;
});
in
fixCyclicReference pkgs.haskellPackages.niv;
in
{ inherit homies bashrc; }