nixos-shell icon indicating copy to clipboard operation
nixos-shell copied to clipboard

Build fail with "no buildable Go source files"

Open gurgeh opened this issue 9 years ago • 6 comments

building path(s) ‘/nix/store/i3minxpr55vpqabadbarvpwmad7nngj3-nixos-shell’ building /nix/store/i3minxpr55vpqabadbarvpwmad7nngj3-nixos-shell building /nix/store/9wajbnfs0bsvfgl179bh6iplzdsqm636-nixos-shell/src/nixos-shell/main.go:6:2: no buildable Go source files in /nix/store/9wajbnfs0bsvfgl179bh6iplzdsqm636-nixos-shell/src/github.com/jessevdk/go-flags builder for ‘/nix/store/pdv00njpppl8zqqd3wd90hf3fkf5fsnh-nixos-shell.drv’ failed with exit code 1 error: build of ‘/nix/store/pdv00njpppl8zqqd3wd90hf3fkf5fsnh-nixos-shell.drv’ failed

gurgeh avatar Jun 08 '15 10:06 gurgeh

@gurgeh this is because the project depends on go-flags...which is not currently added as a proper git submodule... Could this please be resolved? if you clone jessevdk/go-flags where it belongs you can compile it..but then...is this project gonna continue? @chrisfarms

CestDiego avatar Sep 09 '15 04:09 CestDiego

bump. @chrisfarms

akiroz avatar Feb 03 '17 06:02 akiroz

Use this fork https://github.com/wavewave/nixos-shell/tree/submodule

danbst avatar Oct 02 '17 15:10 danbst

For confused readers in the future, run this:

git clone --recurse-submodules -b submodule [email protected]:wavewave/nixos-shell.git
cd nixos-shell
nix-env -i -f default.nix

jezen avatar Apr 07 '18 16:04 jezen

Sadly, didn't manage to get this working on MacOS. This project depends on nixos-container which doesn't build on Darwin.

jezen avatar Apr 07 '18 17:04 jezen

@jezen https://www.johbo.com/2017/building-a-nixos-container-from-macos.html

Pitometsu avatar Dec 12 '18 23:12 Pitometsu