Give Codex some bubblewrap
This commit is contained in:
+5
-2
@@ -8,14 +8,17 @@
|
||||
(pkgs.stdenvNoCC.mkDerivation {
|
||||
name = "codex";
|
||||
version = "0.128.0";
|
||||
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://github.com/openai/codex/releases/download/rust-v0.128.0/codex-x86_64-unknown-linux-musl.tar.gz";
|
||||
hash = "sha256-iGuF5hGMC0MjRDfKAH++kjYRpTsQPQDg0650rvsg4jo=";
|
||||
};
|
||||
sourceRoot = ".";
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
install -m755 codex-x86_64-unknown-linux-musl $out/bin/codex
|
||||
mkdir -p $out/bin $out/libexec
|
||||
install -m755 codex-x86_64-unknown-linux-musl $out/libexec/codex
|
||||
makeWrapper $out/libexec/codex $out/bin/codex \
|
||||
--prefix PATH : ${lib.makeBinPath [ pkgs.bubblewrap ]}
|
||||
'';
|
||||
})
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user