fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

#naersk

0 posts0 participants0 posts today
Jons Mostovojs<p>I spent four days learning <a href="https://social.doma.dev/tags/rust" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rust</span></a>-adjacent toolchains (of which there are four, which are doing some things that are the same and some things that are different: <a href="https://social.doma.dev/tags/naersk" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>naersk</span></a>, <a href="https://social.doma.dev/tags/fenix" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>fenix</span></a>, <a href="https://social.doma.dev/tags/rustPlatform" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rustPlatform</span></a>, <a href="https://social.doma.dev/tags/nixpkgs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>nixpkgs</span></a>.<a href="https://social.doma.dev/tags/rust" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rust</span></a>).</p><p>Throughout these four days I have seen at least a dozen of different error messages. Not a single error message had **anything whatsoever** to do with the error site. Reading traces helped, sometimes, but not always. </p><p>If you are a company who has excess money and you want to make the world a better place, please have your R&amp;D department pick up <a href="https://social.doma.dev/tags/purenix" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>purenix</span></a>, I urge you.</p><p>I ended up downgrading my whole *large* codebase to <a href="https://social.doma.dev/tags/rustStable" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>rustStable</span></a> and simplifying my <a href="https://social.doma.dev/tags/flake" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>flake</span></a> to:</p><p>```nix<br>{<br> description = "Flake for building rootrunner with standard nixpkgs Rust and OpenSSL support";</p><p> inputs = {<br> nixpkgs.url = "github:NixOS/nixpkgs";<br> flake-utils = {<br> url = "github:numtide/flake-utils";<br> inputs.nixpkgs.follows = "nixpkgs";<br> };<br> };</p><p> outputs = { self, nixpkgs, flake-utils, ... }:<br> flake-utils.lib.eachSystem [ "x86_64-linux" ] (system:<br> let<br> pkgs = import nixpkgs { inherit system; };<br> in<br> {<br> devShells.default = pkgs.mkShell {<br> buildInputs = with pkgs; [<br> rustc<br> cargo<br> rustfmt<br> clippy<br> rust-analyzer<br> pkg-config<br> sqlx-cli<br> postgresql<br> sqlite<br> nodejs<br> pnpm<br> zip<br> unzip<br> rsync<br> openssl.dev<br> openssl<br> ];<br> };</p><p> devShell = self.devShells.${system}.default;<br> }<br> );<br>}<br>```</p>
Simon Goller<p>I really like <a href="https://mastodon.neosam.dev/tags/bevyengine" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bevyengine</span></a> (<a href="https://mastodon.neosam.dev/tags/bevy" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bevy</span></a>) and <a href="https://mastodon.neosam.dev/tags/NixOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>NixOS</span></a> and finally I could create a flake which enables me to install Bevy apps in NixOS.</p><p>To do this, I've used <a href="https://mastodon.neosam.dev/tags/naersk" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>naersk</span></a> to generate a flake.nix file. From there, I just had to add some build inputs required by some crates like Alsa and had to write a post install script to set environment variables and publish the assets.</p><p>If somebody is interested on how to set it up in NixOS, here is the code: <a href="https://github.com/neosam/bevy-nix-test/tree/naersk-test" rel="nofollow noopener noreferrer" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/neosam/bevy-nix-tes</span><span class="invisible">t/tree/naersk-test</span></a></p><p>:ReplyOK: :BoostOK:</p>