-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflake.nix
76 lines (73 loc) · 1.85 KB
/
flake.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
65
66
67
68
69
70
71
72
73
74
75
76
{
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixpkgs-unstable";
nixpkgs-sqlite = {
# bug blocking from upgrading: https://www.sqlite.org/forum/forumpost/6e42c65eb8
# sqlite 3.45.1 - https://www.nixhub.io/packages/sqlite-interactive
url = "github:NixOS/nixpkgs/807c549feabce7eddbf259dbdcec9e0600a0660d";
inputs.nixpkgs.follows = "nixpkgs";
};
# for `flake-utils.lib.eachSystem`
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
nixpkgs,
nixpkgs-sqlite,
flake-utils
}:
flake-utils.lib.eachDefaultSystem (
system: let
pkgs = import nixpkgs {
inherit system;
overlays = [];
config.allowUnfree = false;
};
pkgs-sqlite = import nixpkgs-sqlite { inherit system; };
build_packages = with pkgs; [
git
diffutils
jq
pkgs-sqlite.sqlite-interactive
julia-bin
nodejs_20
python3 # for node-gyp
gcc
gnumake
gnused
clang
llvmPackages.libcxxStdenv
llvmPackages.libcxx
llvmPackages.clang
libcxxStdenv
libcxx
];
in {
devShells = {
default = with pkgs;
pkgs.mkShellNoCC {
buildInputs =
build_packages
++ [
just
gh
openssh # Necessary to run git on macs
litecli
vim
neovim
less
fzf
cloc
entr
earthly
docker
xcbuild
];
};
build = pkgs.mkShellNoCC {
buildInputs = build_packages;
};
};
}
);
}