Skip to content

Commit 5f48dc7

Browse files
committed
added flake file
1 parent 590bc3d commit 5f48dc7

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.PHONY: all
2-
all: rtld_loader.so test
2+
all: rtld_loader.so
33

44
.PHONY: test
55
test: binsearch_lookup_test.bin string_funs_test.bin env_parser_test.bin dynamic_lookup_test.bin rtld_loader.so
@@ -13,7 +13,7 @@ rtld_loader.so: $(shell find src -type f) src/lookup_by_channel.generated.c
1313
gcc -shared -nostdlib -fno-stack-protector -fPIC -O2 src/*.c -o rtld_loader.so
1414

1515
src/lookup_by_channel.generated.c: scripts/gen_lookup_by_channel.py $(shell find registry -type f)
16-
scripts/gen_lookup_by_channel.py
16+
python scripts/gen_lookup_by_channel.py
1717

1818
binsearch_lookup_test.bin: test/binsearch_lookup_test.c src/string_funs.[ch] src/binsearch_lookup.[ch]
1919
gcc $^ -g -o $@ -I src

flake.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
pname = "replit_rtld_loader";
1313
version = "1";
1414
src = ./.;
15+
buildInputs = [pkgs.python310];
16+
installPhase = ''
17+
mkdir $out
18+
mv rtld_loader.so $out/
19+
'';
1520
};
1621
devShells.x86_64-linux.default = pkgs.mkShell {
1722
packages = with pkgs; [

0 commit comments

Comments
 (0)