fix uem build

This commit is contained in:
Rongsong Shen 2025-11-17 15:16:48 +08:00
parent e887f0e3d4
commit 02933bf1d2

View file

@ -24,7 +24,7 @@ stdenv.mkDerivation (finalAttrs: {
owner = "shen390s"; owner = "shen390s";
repo = "uem"; repo = "uem";
rev = "develop"; rev = "develop";
hash = "sha256-WLQak+5dbD4Zo3EgnW5YVhj5tNPJlkXYdd4lNLzRlq0="; hash = "sha256-+r7pqow/JHH7i3+2Q2KHldErfigm6nnImGtpsdCWfaQ=";
}; };
buildInputs = with pkgs; [ buildInputs = with pkgs; [
@ -49,13 +49,11 @@ stdenv.mkDerivation (finalAttrs: {
''; '';
buildPhase = '' buildPhase = ''
set +e set -e
set -x
cat >$ROSWELL_HOME/init.lisp <<EOF cat >$ROSWELL_HOME/init.lisp <<EOF
(ros:ensure-asdf) (ros:ensure-asdf)
(push (uiop:ensure-directory-pathname "$src/") asdf:*central-registry*) (push (uiop:ensure-directory-pathname "$src/") asdf:*central-registry*)
EOF EOF
cat $ROSWELL_HOME/init.lisp
cp -Rf $src/roswell . cp -Rf $src/roswell .
ros build roswell/uem.ros ros build roswell/uem.ros
''; '';
@ -63,5 +61,6 @@ stdenv.mkDerivation (finalAttrs: {
installPhase = '' installPhase = ''
mkdir -p $out/bin mkdir -p $out/bin
cp roswell/uem $out/bin cp roswell/uem $out/bin
cp -Rf $src/modules $out
''; '';
}) })