Catmandu builds and succeds test,but doesn't run

I managed to get it working,but when running catmandu after installing it with nix-env I get :

catmandu                                   
Can't locate Catmandu.pm in @INC (you may need to install the Catmandu module) (@INC contains: /nix/store/xnr1miqcjqsvqb6n23zavrvnnyax49bi-perl-5.28.2/lib/perl5/site_perl/5.28.2/x86_64-linux-thread-multi /nix/store/xnr1miqcjqsvqb6n23zavrvnnyax49bi-perl-5.28.2/lib/perl5/site_perl/5.28.2 /nix/store/xnr1miqcjqsvqb6n23zavrvnnyax49bi-perl-5.28.2/lib/perl5/5.28.2/x86_64-linux-thread-multi /nix/store/xnr1miqcjqsvqb6n23zavrvnnyax49bi-perl-5.28.2/lib/perl5/5.28.2) at /home/paki/.nix-profile/bin/catmandu line 3.
BEGIN failed--compilation aborted at /home/paki/.nix-profile/bin/catmandu line 3.

even throught all tests succeeds on build