[Nix-dev] loading the nix-shell in a jenkins job
Allan Espinosa
yecartes at gmail.com
Tue Feb 16 03:06:41 CET 2016
Hi,
I've been trying to get one of my default.nix development environment
build in a Jenkins job. I'm not trying to make a package but create a
different artifact that will be consumed in a different way.
I have this in my execute build step in a freestyle job:
```
#!/usr/bin/env nix-shell
#!nix-shell -i bash
jupyter --version
```
However, I am getting this output:
```
[workspace] $ /usr/bin/env nix-shell
/var/folders/bh/q33bp93j2js6zv27rds0n1x00000gn/T/hudson5799651993425365822.sh
error: undefined variable ‘jupyter’ at
/var/folders/bh/q33bp93j2js6zv27rds0n1x00000gn/T/hudson5799651993425365822.sh:4:1
```
>From the output above, it looks like my script is being interpreted as
a nix expression instead.
Has anyone else have experience loading the nix-shell in a Jenkins job?
Thanks
Allan
More information about the nix-dev
mailing list