• 31 Posts
  • 2 Comments
Joined 1 year ago
cake
Cake day: November 17th, 2023

help-circle







  • What you’re doing is equivalent to

    nix-shell -p "grim slurp"
    

    Which won’t work because nix-shell expects

    nix-shell -p "grim" "slurp"
    

    Which then becomes

    {...}@args: with import <nixpkgs> args; (pkgs.runCommandCC or pkgs.runCommand) "shell" { buildInputs = [ (grim) (slurp) ]; } ""
    

    According to the manual

    nix-shell --packages interprets each command line arguments as attribute names inside the Nix packages collection.

    The error message is because you are giving multiple package names as a single argument.