niv VS nickel

Compare niv vs nickel and see what are their differences.

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
niv nickel
16 46
1,456 2,127
- 3.7%
6.3 9.5
about 2 months ago 10 days ago
Haskell Rust
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
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.

niv

Posts with mentions or reviews of niv. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-03-07.
  • NixOS + Haskell best practices circa March 2023
    6 projects | /r/haskell | 7 Mar 2023
    niv
  • Pulling themes from a git project: the nix way?
    1 project | /r/NixOS | 9 Oct 2022
    Flakes work. An alternative is niv which was once popular and provides a good developer experience.
  • What are the biggest Pain Points with NIX? And what makes it worth the pain?
    2 projects | /r/NixOS | 17 Aug 2022
    Essentially you can just think of it as a standardized default.nix/shell.nix with built-in Niv integration.
  • Our Roadmap for Nix
    22 projects | news.ycombinator.com | 7 Aug 2022
    I agree that the FP part is not the only issue. It's that the community feels a bit more academic/I'll fix this for myself in the way that works best for me.

    You can indeed achieve some reproducibility with Docker. It's tricky though, as you'd have to pin exact package versions of software. If you'd `FROM ubuntu:$VERION`, and would run an `apt-get update`, you're not guaranteed to get the same software.

    Nix is like ZFS, as that it breaks the wall between two previously distinct area's. Those being building software, and installing/configuration software on your OS. It's quite different from the snapshot-everything methodology that Docker uses. Yeah, one can split in multi-stage images etc, but than you'll be keeping track of which dependencies need to be moved between the stages yourself, in a manner that cannot be abstracted away, so you're doomed to repeat the same patterns over and over again.

    People also state that LVM + ext3 is more than sufficient compared to the complexity of ZFS. They miss out on the fact on how much more fine grained solutions are possible with ZFS.

    I've used niv [0] before flakes arrived, and am actually still using that instead of flakes. The experimental nature of them has scared me away from them, as I'm not daily involved in this ecosystem at the moment.

    [0] https://github.com/nmattia/niv#niv

  • Simplest way to set up neovim
    5 projects | /r/NixOS | 26 Jun 2022
    You can use something like Niv to manage additional sources. I use it to fetch some Emacs packages, for example ligature.el. Then you update the package using $ niv update.
  • Unstable vs Stable channels
    3 projects | /r/NixOS | 6 Jun 2022
    One thing that made this easier was switching from using Nix channels to explicitly pinning my dependencies with Niv. I honestly never fully understood how channels worked, and it's just much nicer to have everything specified in my Git repo. The exact commit of Nixpkgs that I'm using is in my sources.json file, so "reverting" just means checking out an older commit of my configs from Git then running nixos-rebuild switch. If I were redoing my dotfiles today I'd probably use Nix Flakes rather than Niv, but I suspect that Niv is still an easier option to get started with.
  • Remove unused niv packages
    1 project | /r/NixOS | 5 Feb 2022
    Does someone know of a way to remove unused pinned packages via [niv](https://github.com/nmattia/niv)?
  • How to downgrade single package?
    2 projects | /r/NixOS | 31 Jan 2022
    Pin nixpkgs, and version control it. If you're using flakes, then just version control the flake.lock alongside your configuration. If you're not using flakes, you can use niv to easily pin nipxkgs, at the expense of some boiler plate.
  • Compiling emacs is killing me
    2 projects | /r/NixOS | 22 Oct 2021
  • Ditch Your Version Manager
    18 projects | news.ycombinator.com | 19 Sep 2021
    This... This is laughable. How do I install ruby 2.6.8? Oh, there's no ruby_2_6_8, because of course there isn't. And this could be difference between a secure system and all your base are belong to us.

    And they call this reproducible builds?

    And that's before getting into the ridiculous

    --- start quote ---

    All the software that we installed depends on the specific version of the nixpkgs channel that we installed on our system [whose only version is a commit hash in a git repo]

    --- end quote ---

    So you need an extra tool [2] for, quote, "painless dependencies for Nix projects."

    Yes, sure. I'm definitely ditching my version managers in favor of this tool, that hasn't solved these issues in 18 years of its existence.

    [1] https://search.nixos.org/packages?channel=21.05&from=0&size=...

    [2] https://github.com/nmattia/niv

nickel

Posts with mentions or reviews of nickel. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-06.
  • Nix – A One Pager
    6 projects | news.ycombinator.com | 6 Apr 2024
    So, its key features are:

    1. domain-specific: designed for conveniently creating and composing derivations. This reason alone already justifies a new language, or an embedded domain-specific language (such as the Guile/Scheme for guix), or a mix of both (Starlark, the build language of Bazel embedded in a restricted Python-variant).

    2. purely functional: this ties well into the philosophical backing of Nix the package manager, which aims to be purely functional, also known as hermeticity in other build systems (Bazel).

    3. lazily evaluated: similar to other build systems (including Bazel), so that you can build only what you need on demand.

    4. dynamically typed: this one is controversial. Being dynamically typed—in other words, not developing a type system—gets Nix out of the door first. But users often complain about the lack of proper types and modularity. There are experiments to address this, such as Nickel (https://github.com/tweag/nickel).

    It is understandable that a one-pager may not have space for the whys.

  • 10 Ways for Kubernetes Declarative Configuration Management
    23 projects | dev.to | 1 Jan 2024
    Nickel:Nickel is a straightforward configuration language aimed at automatically generating static configuration files. Essentially, it's akin to JSON with the addition of functions and types.
  • Show HN: Togomak – declarative pipeline orchestrator based on HCL and Terraform
    12 projects | news.ycombinator.com | 24 Oct 2023
    Also look at nickel which is an evolution of nix. It's my favorite in this space.

    nickel-lang.org

    https://github.com/tweag/nickel

  • Show HN: Flake schemas – teaching Nix about your flake outputs
    2 projects | news.ycombinator.com | 31 Aug 2023
  • What config format do you prefer?
    11 projects | /r/rust | 4 Jul 2023
    Or this https://github.com/tweag/nickel
  • Nickel 1.0
    1 project | news.ycombinator.com | 16 Jun 2023
    Nickel is a programming language. While HCL is just a configuration format, so not really comparable.

    Here's a comparison with similar tools: https://github.com/tweag/nickel#comparison

  • Announcing Nickel 1.0, a configuration language written in (and usable from) Rust
    11 projects | /r/rust | 8 Jun 2023
    As for 'providence', I suppose you meant provenance :) it's been delayed because this was less critical for 1.0 to decide on or to implement (as it: it doesn't break backward compatibility in any way to add this feature in the short term), but this is very much on the roadmap: Issue #235. That's a must-have in a language with merging like Nickel.
  • Rewrite it in Rust: Kubernetes
    8 projects | /r/rust | 3 Jun 2023
    Have you considered using a different language for templating? this could be a BIG selling point. Some good ones are cue-lang (though I haven't seen support for rust), kcl or nickel-lang.
  • Nickel v1.0.0
    1 project | news.ycombinator.com | 17 May 2023
  • Design rationale for the Nickel configuration language
    1 project | news.ycombinator.com | 27 Mar 2023

What are some alternatives?

When comparing niv and nickel you can also consider the following projects:

leksah - Haskell IDE

rnix-lsp - WIP Language Server for Nix! [maintainer=@aaronjanse]

update-nix-fetchgit - A program to automatically update fetchgit values in Nix expressions

nixos - My NixOS Configurations

ghcid - Very low feature GHCi based IDE

nix-gui - Use NixOS Without Coding

elm-make

nix-doc - An interactive Nix documentation tool providing a CLI for function search, a Nix plugin for docs in the REPL, and a ctags implementation for Nix script

hpc-threshold - Small utility for validating whether HPC result is above defined thresholds

AppImageKit - Package desktop applications as AppImages that run on common Linux-based operating systems, such as RHEL, CentOS, openSUSE, SLED, Ubuntu, Fedora, debian and derivatives. Join #AppImage on irc.libera.chat

ihaskell - A Haskell kernel for the Jupyter project.

nix - Nix, the purely functional package manager