hlissner / dotfiles

And I say hey, what's going on?
https://youtu.be/ZZ5LpwO-An4
MIT License
1.62k stars 98 forks source link

How to user personal package in the config? #12

Closed ztlevi closed 3 years ago

ztlevi commented 3 years ago

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?

hlissner commented 3 years ago

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

ztlevi commented 3 years ago

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