README says that "installSimula" doesn't compile, but it does
Opened this issue · 7 comments
README states that installing should take less than a minute and doesn't compile. I'm on a Steam Deck running the install script, which has triggered nix-build
and godot is currently taking 15+ minutes to compile (I see several cc1plus
threads running). Here's some output from nix with relevant info:
Downloading nixpkgs, this will take a while.
these 4 derivations will be built:
/nix/store/jp88g1n58jmjbwp5x0522fcmdb003v0w-godot-3.2.drv
/nix/store/ipfswqry9brjaqwry098mh9b2dswbx35-godot-haskell-3.1.0.0.drv
/nix/store/i0yd90fgq594k9ignmrx8h12d2vxxa54-godot-haskell-plugin-0.1.0.0.drv
/nix/store/dy353rx4qk0wfzpiyd484ci3dxqxyh31-Simula.drv
The README should be corrected.
No, it says it should not compile, not that it doesn't. There are cases where it is necessary.
What you're really asking for is a precompiled binary for your particular platform to be added to the repository.
From reading other issues, this seems to be cachix
failing or being out of date - Builds are being triggered on Ubuntu 22.04 as per #190 and mine was triggered on Fedora 38 on Intel, both hardly niche use cases.
The Readme states:
It takes less than 1 minute to install
at the very top, and a bit further down:
Installing Simula should take less than 1 minute: this script **doesn’t actually compile anything** on your system, but instead downloads the appropriate binaries from our cache in a way that is system and driver agnostic.
(emphasis mine) only later stating that a 1+ hour build time is a possibility.
Either way, the larger issue is that hardware is getting 100% of the focus now as per the discussion on #180 and builds are probably always being triggered for new users.
For me, this step never passes. 0% CPU/RAMS usage. Just hangs there like so:
/home/rebelcoder/.nix-profile/bin/nix
nix already installed..
/home/rebelcoder/.nix-profile/bin/cachix
cachix already installed..
Configured https://simula.cachix.org binary cache in /home/rebelcoder/.config/nix/nix.conf
Message from Simula Contributors.
=================================
In order to show project funders that Simula is useful,
we anonymously collect the following data:
- Session length
- Number of windows active
- Error logs on crashes
Downloading nixpkgs, this will take a while.
OS: Arch Linux
What does ps ax|grep nix say?
What does ps ax|grep nix say?
Update: after some tinkering, installSimula
fails with the following:
Message from Simula Contributors.
=================================
In order to show project funders that Simula is useful,
we anonymously collect the following data:
- Session length
- Number of windows active
- Error logs on crashes
Downloading nixpkgs, this will take a while.
⬇️
error: 2448 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
error:
… while calling the 'import' builtin
at /media/work/!_Tools/Simula/default.nix:3:120:
2| let
3| pkgs = if profileBuild then (import ./pinned-nixpkgs.nix { overlays = (import ./nix/profileOverlays.nix); }) else (import ./pinned-nixpkgs.nix { });
| ^
4| in
… while evaluating the file '/media/work/!_Tools/Simula/pinned-nixpkgs.nix':
… while calling the 'import' builtin
at /media/work/!_Tools/Simula/pinned-nixpkgs.nix:1:1:
1| import (builtins.fetchGit {
| ^
2| url = "https://github.com/NixOS/nixpkgs.git";
(stack trace truncated; use '--show-trace' to show the full trace)
error: program 'git' failed with exit code 128
Seems like some sort of flaky internet connection?