flake-utils
solana-nix
Our great sponsors
flake-utils | solana-nix | |
---|---|---|
8 | 1 | |
1,012 | 10 | |
6.5% | - | |
5.8 | 2.7 | |
about 2 months ago | about 2 years ago | |
Nix | Nix | |
MIT License | GNU Affero General Public License v3.0 |
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.
flake-utils
- Nix Flakes
-
Our Roadmap for Nix
The ‘flake-utils’ readme is a pretty good jumping off point: https://github.com/numtide/flake-utils
I have this or that nitpick with FL and FLP but overall it’s very solid stuff. FLP is a little more “magical”, and that’s not always the best starting out, but you really can’t go wrong with either.
-
Rust Environment and Docker Build with Nix Flakes
We added two inputs, the first is nixpkgs which lets us specify which version of nixpkgs we should use. There are many thousands of packages in the nixpkg repository, and they are updated often so here will use the unstable branch. We also added flake-utils which helps us generalize the flake to support multiple systems, not just Linux.
-
Getting Started Using Nix Flakes As An Elixir Development Environment
The inputs is how you can import external sources of other flakes into the flake project you have. In other words, any project you may need or tools required to get started, this is where you will define their source. Example below is using the standard nixpkgs and a tool called flake-utils, which provides a set of functions to make flake nix packages simpler to set up without external dependencies.
-
Flake equivalent to `nix-shell --pure`?
I'm not sure what nix-shell --pure does, but is it equivalent to using a flakes.nix in your projects? Ie i use https://github.com/numtide/flake-utils and direnv to replicate the old shell.nix with a Flakes setup. Per project i have a flakes.nix and a flakes.lock, so it feels just like my old shell.nix setup, but using flakes instead.
-
Workspace Management With Nix Flakes: Jupyter Notebook Example
A Nix Flake is just an object - check out those surrounding curly braces. This object has two keys, inputs and outputs. The inputs are where we define the flake's dependencies and where to find all the tools we use. This one has two, nixpkgs and flake-utils. Each of these just points to a GitHub URL, and if you follow those links, you'll see each repo provides its own flake.nix. The outputs of each remote flake get piped into the inputs of my flake, so we can use what they provide.
-
How to transition from shell.nix to flake.nix?
You can easily transition your shell.nix (and default.nix) to a flake-based one by using flake-utils and flake-compat. The former is actually unnecessary, but I would recommend it for typical project environments. Unless you have an impure dependency, this transition would be easy.
-
Is there a way to use flakes to nix run emacsgcc?
Flakes can provide different types of things: - some flakes provide applications that you can nix run, - some flakes provide functions that you can import (e.g. https://github.com/numtide/flake-utils), - some flakes provide overlays to use with nixpkgs (e.g. that emacs-overlay you posted).
solana-nix
-
Is it worth learning and migrating to Flakes as of November 2021?
I didn't really have any noteworthy derivations before flakes so there was nothing for me to port and all the flakes I now have (e.g., https://github.com/cideM/solana-nix or https://github.com/cideM/visual-studio-code-insiders-nix/) don't do anything that's particularly fancy.
What are some alternatives?
emacs-overlay - Bleeding edge emacs overlay [maintainer=@adisbladis]
flake-awesome-neovim-plugins - Nix flake of Awesome Neovim plugins
flake-utils-plus - Use Nix flakes without any fluff.
nixpkgs - My Nix system configs!
nix-direnv - A fast, persistent use_nix/use_flake implementation for direnv [maintainer=@Mic92 / @bbenne10]
visual-studio-code-insiders-nix - The latest Visual Studio Code Insiders build updated daily
nixos - A fully automated replicable nixos configuration set
nixpkgs - Nix Packages collection & NixOS
elixir-ls - A frontend-independent IDE "smartness" server for Elixir. Implements the "Language Server Protocol" standard and provides debugger support via the "Debug Adapter Protocol"
rust-overlay - Pure and reproducible nix overlay of binary distributed rust toolchains
nix - Nix, the purely functional package manager
flake-templates - A collection of barebone Nix shells for starting a project, provided as flake templates