From e822b84b960998e01b35b7980ac9b0d93459d036 Mon Sep 17 00:00:00 2001 From: Faris Masad Date: Wed, 1 Apr 2026 17:37:25 -0700 Subject: [PATCH 1/4] Remove python from build inputs; bump devShell to python312 Python is only needed for running tests, not for building rtld_loader.so (pure C, compiled with gcc -shared -nostdlib). Removing it from buildInputs fixes consumers that follow nixpkgs-unstable where python310 no longer exists. Bump devShell python from 310 to 312. --- flake.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index a928897..d46793b 100644 --- a/flake.nix +++ b/flake.nix @@ -10,7 +10,7 @@ pname = "replit_rtld_loader"; version = "1"; src = ./.; - buildInputs = [pkgs.python310]; + buildInputs = []; installPhase = '' mkdir $out mv rtld_loader.so $out/ @@ -21,7 +21,7 @@ packages.x86_64-linux.default = package; devShells.x86_64-linux.default = pkgs.mkShell { packages = with pkgs; [ - python310 + python312 gnumake ]; }; From 07333a100a8a8f18637aa9fe1557c6eeb5a3cf49 Mon Sep 17 00:00:00 2001 From: Faris Masad Date: Wed, 1 Apr 2026 17:40:48 -0700 Subject: [PATCH 2/4] Bump python310 to python312 in ci_check.sh and replit.nix --- replit.nix | 2 +- scripts/ci_check.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/replit.nix b/replit.nix index 842bc14..ed93d0d 100644 --- a/replit.nix +++ b/replit.nix @@ -2,7 +2,7 @@ {pkgs}: { deps = [ pkgs.gdb - pkgs.python310Full + pkgs.python312Full pkgs.clang ]; } \ No newline at end of file diff --git a/scripts/ci_check.sh b/scripts/ci_check.sh index 5a3dcc1..957c51e 100755 --- a/scripts/ci_check.sh +++ b/scripts/ci_check.sh @@ -1,5 +1,5 @@ #! /usr/bin/env nix-shell -#! nix-shell -i bash -p clang python310Full gnumake +#! nix-shell -i bash -p clang python312Full gnumake set -e From 68d7905fca78e80a1e55755ac9ce386b2655751f Mon Sep 17 00:00:00 2001 From: Faris Masad Date: Wed, 1 Apr 2026 17:43:02 -0700 Subject: [PATCH 3/4] Use python314 instead of python312 --- flake.nix | 2 +- replit.nix | 2 +- scripts/ci_check.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index d46793b..d437d2e 100644 --- a/flake.nix +++ b/flake.nix @@ -21,7 +21,7 @@ packages.x86_64-linux.default = package; devShells.x86_64-linux.default = pkgs.mkShell { packages = with pkgs; [ - python312 + python314 gnumake ]; }; diff --git a/replit.nix b/replit.nix index ed93d0d..fa4ddd8 100644 --- a/replit.nix +++ b/replit.nix @@ -2,7 +2,7 @@ {pkgs}: { deps = [ pkgs.gdb - pkgs.python312Full + pkgs.python314Full pkgs.clang ]; } \ No newline at end of file diff --git a/scripts/ci_check.sh b/scripts/ci_check.sh index 957c51e..0e6a48d 100755 --- a/scripts/ci_check.sh +++ b/scripts/ci_check.sh @@ -1,5 +1,5 @@ #! /usr/bin/env nix-shell -#! nix-shell -i bash -p clang python312Full gnumake +#! nix-shell -i bash -p clang python314Full gnumake set -e From 1ef61ca4b4b67a2491a446fd69027696e7397a34 Mon Sep 17 00:00:00 2001 From: Faris Masad Date: Wed, 1 Apr 2026 17:46:20 -0700 Subject: [PATCH 4/4] Use python314 instead of python314Full (removed in nixpkgs) --- replit.nix | 2 +- scripts/ci_check.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/replit.nix b/replit.nix index fa4ddd8..26b6844 100644 --- a/replit.nix +++ b/replit.nix @@ -2,7 +2,7 @@ {pkgs}: { deps = [ pkgs.gdb - pkgs.python314Full + pkgs.python314 pkgs.clang ]; } \ No newline at end of file diff --git a/scripts/ci_check.sh b/scripts/ci_check.sh index 0e6a48d..6c27689 100755 --- a/scripts/ci_check.sh +++ b/scripts/ci_check.sh @@ -1,5 +1,5 @@ #! /usr/bin/env nix-shell -#! nix-shell -i bash -p clang python314Full gnumake +#! nix-shell -i bash -p clang python314 gnumake set -e