2
Using local package as dependency for another package
(lemmy.blahaj.zone)
With callPackage you need to specify an argument set to the package expression, like this:
callPackage ../brei/package.nix {}
Without the curly braces what you have is a function instead of a derivation, which is why the error message says it's an invalid type.
The argument set lets you override inputs to the package set, or pass in arguments that aren't provided by nixpkgs. But if you want all package inputs to be automatically pulled from nixpkgs then you provide an empty set.
yea i was abt to edit the post saying i found out lol, but still thanks for the help