epics-extensions / EPNix

Build, package, deploy IOCs and EPICS-related software using the Nix package manager
https://epics-extensions.github.io/EPNix/
Apache License 2.0
15 stars 5 forks source link

makeBaseApp.pl, eregen, etc. not available in default nix develop enviornment from template #63

Open Synthetica9 opened 6 months ago

Synthetica9 commented 6 months ago

Description

When following the tutorial, I ran into some issues with commands not being available

To reproduce

Follow the tutorial here: https://epics-extensions.github.io/EPNix/ioc/tutorials/streamdevice.html

Specifically:

$ nix flake new -t 'github:epics-extensions/epnix' my-top
[...]
$ cd my-top
$ nix develop
[...]
$ makeBaseApp.pl -t ioc example
makeBaseApp.pl: command not found
minijackson commented 6 months ago

Hey there! Thanks for your interest in EPNix!

Just to be sure, did you ran the makeBaseApp.pl command inside the nix develop environment?

I just tried these exact instructions, and it worked for me.

Could you check that:

Another potential lead: are you on a x86_64-linux machine?

Synthetica9 commented 6 months ago

Yes, I ran makeBaseApp.pl in the nix develop shell

I'm on x86-64-linux-NixOS via WSL2, so there may be some difficulties there. I'll see if I can recreate the same issue in a "real" NixOS vm.

minijackson commented 6 months ago

hmmm, that's weird. EPnix was previously used on WSL2, and it did work. I don't have a WSL2 system on hand right now so I can't test it immediately.

You have epics-base in the nix store, so it did build it to make the development environment.

Could you show the result of nix print-dev-env from your top?

Could you also tell me your Nix version?