diff options
| author | Lain Iwakura <lain@lainmail.xyz> | 2026-01-04 04:05:51 +0300 |
|---|---|---|
| committer | Lain Iwakura <lain@lainmail.xyz> | 2026-01-04 04:05:51 +0300 |
| commit | 91d930fab95479f377f4af4579042de10deeb9c3 (patch) | |
| tree | f53b1b3f8733b97fc898d40960a117dff7a91556 | |
| parent | fix(deploy.sh): syntax (diff) | |
| download | torus-91d930fab95479f377f4af4579042de10deeb9c3.tar.gz torus-91d930fab95479f377f4af4579042de10deeb9c3.zip | |
fix(darwin): darwin configs
| -rw-r--r-- | Darwin.mk | 10 | ||||
| -rw-r--r-- | shell.nix | 14 |
2 files changed, 23 insertions, 1 deletions
diff --git a/Darwin.mk b/Darwin.mk index 6a2f53f..e98b6e4 100644 --- a/Darwin.mk +++ b/Darwin.mk @@ -1,2 +1,10 @@ LDFLAGS = -LDLIBS = -lcurses +LDLIBS = -lncurses -lz + +ifdef NIX_CFLAGS_COMPILE +CFLAGS += ${NIX_CFLAGS_COMPILE} +endif + +ifdef NIX_LDFLAGS +LDFLAGS += ${NIX_LDFLAGS} +endif \ No newline at end of file diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..511a808 --- /dev/null +++ b/shell.nix @@ -0,0 +1,14 @@ +{ pkgs ? import <nixpkgs> {} }: + +pkgs.mkShell { + buildInputs = with pkgs; [ + ncurses + zlib + ctags + ]; + + shellHook = '' + export NIX_CFLAGS_COMPILE="-I${pkgs.ncurses.dev}/include -I${pkgs.zlib.dev}/include" + export NIX_LDFLAGS="-L${pkgs.ncurses.out}/lib -L${pkgs.zlib.out}/lib" + ''; +} |