naersk
nix-templates
naersk | nix-templates | |
---|---|---|
6 | 8 | |
637 | 42 | |
1.6% | - | |
5.6 | 4.0 | |
13 days ago | 29 days ago | |
Nix | Nix | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
naersk
-
Help with building a 32bit library with cargo
i would also recommend using crane or naersk since iirc rustPlaform.buildRustPackage can mangle some of these options (or maybe i just did something wrong lol)
-
Nix & Rust - cargo2nix 0.11.0 released
Have a look at naersk, it neither requires generated Nix files nor IFD.
-
Nix and NixOS Get So Close to Perfect
We use naersk[0] for Rust projects in our Nix monorepo (for example [1]). It's pretty hands-off in terms of the Nix code needed (you don't need to pin hashes inside of the Nix code as long as you have a Cargo lockfile) and all the existing tooling keeps working fine.
The main drawback of it is that it currently builds all of your dependencies in one big derivation, so any dependency changes cause a full rebuild. There's some other project I saw fly by which attempts to do a similar thing but split each crate into a separate derivation, but I forgot what it's called and have no experience with it.
[0]: https://github.com/nix-community/naersk
[1]: https://cs.tvl.fyi/depot/-/blob/ops/journaldriver/default.ni...
-
Nixery – Docker images on the fly with Nix
You can also use naersk¹ if you want to avoid a two-step process. It's especially convenient when using nix flakes.
¹https://github.com/nix-community/naersk
-
niv, naersk, napalm: moving on
I created https://github.com/nmattia/napalm/issues/34 and https://github.com/nmattia/naersk/issues/183 to move them to nix-community
-
Nix-ifying a Rust project
sounds exactly like what naersk does. naersk doesn't need a cargSha256 argument since it downloads dependencies from Cargo.lock. it can also grab the version number from Cargo.toml
nix-templates
-
How to add a haskell flake as the dependency for another haskell flake?
} I tried adding vox-hs = vox-hs-in.defaultPackage.${system} `` wherecallCabal2nixis called. This flake is taken from the [Practical Nix Flakes](https://serokell.io/blog/practical-nix-flakes) article which mentions this is where dependency overrides go. I have also trued adding my package as an overlay when definingpkgs`, but couldn't get this to work either. Whats the best method for a haskell flake to depend on another haskell flake? Thanks!
- Nix Flakes
-
Migrating from Void Linux to NixOS, dotfiles and home manager!
Here's one intro guide to Flakes by Nix's creator Dolstra. Here's another good intro tutorial. Note that that last one also has our answer to wtf legacyPackages is:
-
what's the recommended setup?
This guide is what I use and it works well. Direnv is great and has integration with emacs if that’s your editor.
-
How should dependencies be specified for the Haskell C FFI with callCabal2Nix?
I've previously just used Stack's Nix support for simple builds; now I'm tyring to get up and running packaging a Haskell application (that uses the C FFI) as a Flake. I'm working from this base (borrowed from https://serokell.io/blog/practical-nix-flakes):
- Big list of Flakes tutorials
-
Nix-ifying a Rust project
I like the way crate2nix works. I have made a flake template for it here. Sometimes it requires a couple of overrides to fix some misbehaving crates (see https://github.com/balsoft/simple-osd-daemons/blob/master/flake.nix#L29 for an example of such overrides), but otherwise it's fantastic. It doesn't require any hash nonsense, it downloads and builds all the crates separately (unlike naersk or other solutions) so you get all the benefits of Nix (reproducibility and proper caching).
What are some alternatives?
crate2nix - rebuild only changed crates in CI with crate2nix and nix
templates - Flake templates
rust-overlay - Pure and reproducible nix overlay of binary distributed rust toolchains
cargo2nix - Granular builds of Rust projects for Nix
nix-direnv - A fast, persistent use_nix/use_flake implementation for direnv [maintainer=@Mic92 / @bbenne10]
direnv - unclutter your .profile
haskell-nix - Nix and Haskell in production
nix2container - An archive-less dockerTools.buildImage implementation
himalaya - CLI to manage emails