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