Merge pull request #297739 from hraban/sbcl/version-file

sbcl: create version file if none exists
This commit is contained in:
7c6f434c 2024-03-21 15:58:36 +00:00 committed by GitHub
commit 85049df2ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -146,6 +146,12 @@ stdenv.mkDerivation (self: rec {
--replace-quiet /bin/uname "${coreutils}/bin/uname" \
--replace-quiet /bin/sh "${stdenv.shell}"
)
# Official source release tarballs will have a version.lispexpr, but if you
# want to override { src = ... } it might not exist. Its required for
# building, so create a mock version as a backup.
if [[ ! -a version.lisp-expr ]]; then
echo '"${version}.nixos"' > version.lisp-expr
fi
'';
preBuild = ''