we are able to parse str to int in the kernel

This commit is contained in:
Sebastian Moser
2024-08-16 15:37:45 +02:00
parent 84c973d392
commit 349b792c18
7 changed files with 205 additions and 3 deletions

View File

@@ -0,0 +1,18 @@
{stdenv
, ...
}: let
in stdenv.mkDerivation {
name = "read-helper";
src = ./.;
# Use $CC as it allows for stdenv to reference the correct C compiler
buildPhase = ''
gcc -fno-stack-protector -D_FORTIFY_SOURCE=0 read-helper.c -o read-helper
'';
installPhase = ''
mkdir -p $out/bin
cp read-helper $out/bin
'';
}