Merge pull request #314620 from NickCao/cmdpack

cmdpack: refactor build/installPhase, fix cross compilation
This commit is contained in:
❄️ 2024-07-27 18:09:48 -03:00 committed by GitHub
commit 98ab87a16a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,7 +13,7 @@ let
buildPhase = ''
runHook preBuild
gcc -o ${pname} src/${pname}.c
$CC -o "$pname" "src/$pname.c"
runHook postBuild
'';
@ -21,8 +21,7 @@ let
installPhase = ''
runHook preInstall
mkdir -p $out/bin
cp ${pname} $out/bin
install -Dm555 -t "$out/bin" "$pname"
runHook postInstall
'';