cmdpack: refactor build/installPhase, fix cross compilation

This commit is contained in:
Nick Cao
2024-05-25 11:00:42 -04:00
parent e47684628d
commit e6aa049fa8
+2 -3
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
'';