Re: [Nix-dev] Building portable linux binaries on NixOS

2015-10-07 Thread Kamil Chmielewski
2015-10-07 20:44 GMT+02:00 Bryan Gardiner : > > your shell does not find "./go-app". > > What does ls -l say? > The file path is right and exists for sure. > Most likely Kamil is in the right directory, and this is just a known > quirk: bash tries to exec the program, the exec

Re: [Nix-dev] Building portable linux binaries on NixOS

2015-10-07 Thread zimbatm
@Luca: try this: ``` $ nix-env -i direnv [snip] $ ldd `which direnv` not a dynamic executable ``` The difference is that direnv is pure go and thus isn't compiled by gccgo. @Kamil: if it's possible to remove all the C dependencies in your go program I would recommend it. It just makes

Re: [Nix-dev] Running nix-shell commands as cron jobs

2015-10-07 Thread Bjørn Forsman
On 7 October 2015 at 22:06, Anders Lundstedt wrote: > A python script I have depends on the requests2 package. I can run the > script using > > nix-shell --pure -p python3 -p python3Packages.requests2 --run ./my-script.py > > > However when putting this line as a cron

Re: [Nix-dev] Issue with switch --upgrade

2015-10-07 Thread 4levels
Hi Eelco, thank you very much, the manual removal of the cached files was indeed required over here.. Kind regards, Erik On Tue, Oct 6, 2015 at 11:18 PM Eelco Dolstra wrote: > Hi, > > On 06/10/15 15:28, 4levels wrote: > > > since today I'm always running into the

Re: [Nix-dev] Several updates to rather important Python packages

2015-10-07 Thread Domen Kožar
Hey Freddy, Hydra has jobset called one-shot that are solving this exact problem. If you don't have the resources to build the change yourself, ask on the PR and someone will setup the jobset for you (this hasn't been formalized, but for now it works ok). In future we might want to automate

[Nix-dev] NixCon schdule and talks announced!

2015-10-07 Thread Rok Garbas
Hi, I'm back with few updates for conference. 1. Schedule for the conference was announced and you can see it on the website. This includes talks which are also listed in the schedule. https://conf.nixos.org 2. Sponsorship reached the point where we are able to afford Video

Re: [Nix-dev] NixCon schdule and talks announced!

2015-10-07 Thread Nathan Bijnens
Very cool. Ps. The site gives a certifcate error, because it uses the Github cert. Something like cloudflare could be used to offer a kind of SSL. N. On Wed, Oct 7, 2015 at 12:35 PM Matthias Beyer wrote: > Hi, > > On 07-10-2015 12:28:58, Rok Garbas wrote: > > I'm back

Re: [Nix-dev] NixCon schdule and talks announced!

2015-10-07 Thread Matthias Beyer
Hi, On 07-10-2015 12:28:58, Rok Garbas wrote: > I'm back with few updates for conference. Yaaay! > 1. Schedule for the conference was announced and you can see it on the > website. >This includes talks which are also listed in the schedule. Yaaay! > 2. Sponsorship reached the point where

[Nix-dev] Several updates to rather important Python packages

2015-10-07 Thread Freddy Rietdijk
Hi Nixers, For some time now I've been submitting new Python packages as well as updates. Occasionally, an update arrives with a very large impact, e.g. the currently available numpy update to 1.10.0 (#10255 ). For some of the cases, like this one, I

Re: [Nix-dev] Nix + OpenGL on Debian?

2015-10-07 Thread Roland Koebler
Hi, thanks. The instructions in the linked issue weren't enough, but after strace-ing the program and adding more libraries to LD_LIBRARY_PATH, it works. :) I've documented the details it in the linked issue. (https://github.com/NixOS/nixpkgs/issues/9415) - Roland On Tue, Oct 06, 2015 at

Re: [Nix-dev] Building portable linux binaries on NixOS

2015-10-07 Thread Peter Simons
Kamil Chmielewski writes: > $ ldd go-app > linux-vdso.so.1 (0x7ffdeab7) > libpthread.so.0 => > nix/store/npfsi1d9ka8zwnxzn3sr08hbwvpapyk7-glibc-2.21/lib/libpthread.so.0 > (0x7f9ae89e) > libc.so.6 => > /nix/store/npfsi1d9ka8zwnxzn3sr08hbwvpapyk7-glibc-2.21/lib/libc.so.6

Re: [Nix-dev] NixCon schdule and talks announced!

2015-10-07 Thread Domen Kožar
https://news.ycombinator.com/item?id=10348288 On Wed, Oct 7, 2015 at 12:56 PM, Nathan Bijnens wrote: > Very cool. > > Ps. The site gives a certifcate error, because it uses the Github cert. > > Something like cloudflare could be used to offer a kind of SSL. > > N. > > On Wed,

Re: [Nix-dev] Building portable linux binaries on NixOS

2015-10-07 Thread Luca Bruno
go binaries are not static "static" in go land means go binaries don't depend externally on other go sources. On Wed, Oct 7, 2015 at 7:21 PM, zimbatm wrote: > What is the output of `ldd go-app` ? > > Go binaries should be static unless you're using gccgo. > > On Wed, 7

Re: [Nix-dev] Building portable linux binaries on NixOS

2015-10-07 Thread Bryan Gardiner
On Wed, 7 Oct 2015 20:29:30 +0200 Roland Koebler wrote: > > I'm trying to build Linux binaries from Go source code, but when I move it > > to Ubuntu and I try to run it there all I get is: > > -bash: ./go-app: No such file or directory > > your shell does not find

[Nix-dev] Building portable linux binaries on NixOS

2015-10-07 Thread Kamil Chmielewski
Hi, I'm trying to build Linux binaries from Go source code, but when I move it to Ubuntu and I try to run it there all I get is: -bash: ./go-app: No such file or directory Is there any simple way to patch Nix binary and make it runnable under other distros? Cheers, Kamil

Re: [Nix-dev] Building portable linux binaries on NixOS

2015-10-07 Thread Kamil Chmielewski
ldd go-app linux-vdso.so.1 (0x7ffdeab7) libpthread.so.0 => /nix/store/npfsi1d9ka8zwnxzn3sr08hbwvpapyk7-glibc-2.21/lib/libpthread.so.0 (0x7f9ae89e) libc.so.6 => /nix/store/npfsi1d9ka8zwnxzn3sr08hbwvpapyk7-glibc-2.21/lib/libc.so.6 (0x7f9ae864)