I was wondering how you would use packages from a specific channel (in this case: for Dhall)in a
shell.nix file (or using
nix-shell -p)? If it can’t be done directly, are there ways to make it work?
I’ve been looking around a bit, but I can’t find any documentation on how to do just this. Any help would be very appreciated!
I started playing around with Dhall the other day, but found that the version in the channel
nixos-unstable was too old to have certain features that I wanted: the available version is 1.24, but I need at least 1.27.
Luckily, I found that Dhall has it’s own channel that tracks the master branch.
Now the problem is that I can’t figure out how to use the channel.
The link provides instructions on how to install packages using
nix-env, but that doesn’t work because of how I manage my env (using this gist, which forbids
nix-env). I also don’t want to install it directly in my environment but use it in nix-shells.
However, I’ve not found any documentation on how to do that or if it is at all possible.
Any help would be very much appreciated. Cheers.