Hi.
I am following Luc’s tutorial
Basically I added an overlay on my channel and trying to reference it from nix shell.
nix-channel --list
nixpkgs nixpkgs-unstable release nixpkgs-24.05pre583512.01737456dfe4
personal https://github.com/yaitskov/niv-nix-demo/archive/master.tar.gz
channel config:
let
sources = import ./nix/sources.nix;hello = pkgs.writeShellScriptBin “hello” ‘’
echo “Hello from the Nix channel overlay!”
‘’;pkgs = import sources.nixpkgs {
overlays = [
(self: super: {
inherit hello;
})
];
};
in
pkgs
shell.nix:
let
pkgs = import ;
in pkgs.mkShell {
builtInputs = with pkgs; [
hello
];
}
shell run:
nix-shell --pure --run hello
/tmp/nix-shell-30454-0/rc: line 1: hello: command not found
How to troubleshoot such situation.