So now I’m trying to write a shell.nix that will give me an environment where my hello-nix script is available. I expected this to work:
with (import <nixpkgs> {});
let
hello = callPackage (builtins.fetchGit {
url = "https://codeberg.org/mhwombat/hello-nix";
rev = "aa2c87f8b89578b069b09fdb2be30a0c9d8a77d8";
}) {};
in
mkShell {
buildInputs = [ hello ];
}
However, I get the following error. How can I fix this?
$ nix-shell shell-with-git-nix-pkg.nix
error: 'functionArgs' requires a function
at /nix/store/fy9zn4myvzbx1740vxk3309i6fxb76dg-nixos/nixos/lib/trivial.nix:443:10:
442| then f.__functionArgs or (lib.functionArgs (f.__functor f))
443| else builtins.functionArgs f;
| ^
444|
(use '--show-trace' to show detailed location information)