forked from supabase/pg_net
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
39 lines (39 loc) · 1.02 KB
/
Copy pathshell.nix
File metadata and controls
39 lines (39 loc) · 1.02 KB
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
with import (builtins.fetchTarball {
name = "25.05";
url = "https://github.com/NixOS/nixpkgs/archive/refs/tags/25.05.tar.gz";
sha256 = "sha256:1915r28xc4znrh2vf4rrjnxldw2imysz819gzhk9qlrkqanmfsxd";
}) {};
mkShell {
buildInputs =
let
nginxCustom = callPackage ./nix/nginxCustom.nix {};
xpg = callPackage ./nix/xpg.nix {inherit fetchFromGitHub;};
loadtest = callPackage ./nix/loadtest.nix {};
pythonDeps = with python3Packages; [
pytest
psycopg2
sqlalchemy
];
style =
writeShellScriptBin "net-style" ''
${clang-tools}/bin/clang-format -i src/*
'';
styleCheck =
writeShellScriptBin "net-style-check" ''
${clang-tools}/bin/clang-format -i src/*
${git}/bin/git diff-index --exit-code HEAD -- '*.c'
'';
in
[
xpg.xpg
pythonDeps
nginxCustom.nginxScript
curlWithGnuTls
loadtest
style
styleCheck
];
shellHook = ''
export HISTFILE=.history
'';
}