hlissner/dotfiles

How to user personal package in the config?

ztlevi opened this issue · 2 comments

Hi,

I'm trying to add some packages that haven't been added to nixpkgs. But I couldn't figure out the way to use the defined packages in the config.

Basically, I create a new stdenv.mkDerivation under ./pakcages/<new-package>.nix. But when I try to use that package in the config, it couldn't find it.

How to add personal packages in the config?

This line puts it under pkgs.my.*. So pkgs.my.new-package should hold the package you're looking for.

Ah, nice, it works!

Is there any recommended source that teaches ppl how to debug personal nix build? So far, I only find things like builtins.trace and lib.traceSeq, and they are little hard to use because we have to put them in a = statement.

Otherwise, it will raise error like this
image

image