lmstudio: 0.3.5 -> 0.3.6#372738
Conversation
|
Works on Linux, tested via |
|
@NixOS/nixpkgs-merge-bot merge |
|
D'oh. @eeedean I forgot that the mergebot isn't working. Can you kick the tires on this for mac? |
|
|
Looks like LM Studio did a thing. DMGs may be HFS or APFS and undmg only supports HFS. I'm trying to provide a fix. |
|
Bless 🙏 |
|
Should we wait for the fix or... ? |
It wouldn't build on darwin. Using 7zz results in a corrupted App Bundle on macOS, which wont start. It's unfortunate, but I think, we should wait for a fix. Who really needs the most recent version (on Linux anyways), might be fine with overriding the src in an Overlay imho. |
|
I'm honestly not entirely sure about my proposed solution, but first the issues: Anway: Insomnia.app seems to have had a similar challenge and they went as you can see here. They are invoking My proposed change (for darwin.nix): # LM Studio ships Scripts inside the App Bundle, which may be messed up by standard fixups
dontFixup = true;
# undmg doesn't support APFS and 7zz does break the xattr. Took that approach from https://github.com/NixOS/nixpkgs/blob/a3c6ed7ad2649c1a55ffd94f7747e3176053b833/pkgs/by-name/in/insomnia/package.nix#L52
unpackCmd = ''
echo "Creating temp directory"
mnt=$(TMPDIR=/tmp mktemp -d -t nix-XXXXXXXXXX)
function finish {
echo "Ejecting temp directory"
/usr/bin/hdiutil detach $mnt -force
rm -rf $mnt
}
# Detach volume when receiving SIG "0"
trap finish EXIT
# Mount DMG file
echo "Mounting DMG file into \"$mnt\""
/usr/bin/hdiutil attach -nobrowse -mountpoint $mnt $curSrc
# Copy content to local dir for later use
echo 'Copying extracted content into "sourceRoot"'
cp -a $mnt/LM\ Studio.app $PWD/
'';How do you feel about that? |
|
Sounds like a plan! Want me to add that to this PR and squash it in if you can verify that it would work? |
|
Yes, please -- If there are no objections, may that's the way for now. |
368d8eb to
0e1a95e
Compare
|
Alright @eeedean , should be good to try again. |
|
Updates to 0.3.6 rev 8.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)Add a 👍 reaction to pull requests you find important.