Re: [Nix-dev] how to 'just run binaries' in nixos

2017-03-23 Thread David Izquierdo
I hereby propose the tool to be renamed and refactocopied to `ubuntu-run`, since it will end up being the target runtime anyway :P On 23/03/17 18:10, Moritz Ulrich wrote: Azul writes: thanks all, *steam-run* just works Maybe we should create an alias or a separate incarnation of the same

Re: [Nix-dev] how to 'just run binaries' in nixos

2017-03-23 Thread Moritz Ulrich
Azul writes: > thanks all, > > *steam-run* just works Maybe we should create an alias or a separate incarnation of the same tool with more dependencies included for "most" software? I'm sure many newcomers would welcome to be able to run their games or other prebuilt binaries without having to w

Re: [Nix-dev] how to 'just run binaries' in nixos

2017-03-22 Thread Azul
thanks all, *steam-run* just works On 22 March 2017 at 11:24, Brian McKenna wrote: > I have a couple of methods for doing this. I just posted them onto my blog: > > https://brianmckenna.org/blog/running_binaries_on_nixos > > Hopefully one of them is suitable for you. I'd love to learn if the

Re: [Nix-dev] how to 'just run binaries' in nixos

2017-03-22 Thread Brian McKenna
I have a couple of methods for doing this. I just posted them onto my blog: https://brianmckenna.org/blog/running_binaries_on_nixos Hopefully one of them is suitable for you. I'd love to learn if there's ways to improve on these. On 22 March 2017 at 09:41, Azul wrote: > is there a simple way t

Re: [Nix-dev] how to 'just run binaries' in nixos

2017-03-21 Thread Profpatsch
On 17-03-22 01:49am, Nikolay Amiantov wrote: > You may try steam-run. Despite the name it's actually not necessarily > related to Steam, it just runs binaries in an environment very > resembling Steam Runtime (which is a good de-facto standard). There’s also buildEnv from pkgs/build-support/builde

Re: [Nix-dev] how to 'just run binaries' in nixos

2017-03-21 Thread Roger Qiu
https://nixos.org/patchelf.html On 22/03/2017 9:42 AM, "Azul" wrote: > is there a simple way to just run binaries in nixos ? > > stuff like go binaries or other bits and bobs ? > > > ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, > interpreter /lib64/ld-linux-x86-64.so.2

Re: [Nix-dev] how to 'just run binaries' in nixos

2017-03-21 Thread Nikolay Amiantov
You may try steam-run. Despite the name it's actually not necessarily related to Steam, it just runs binaries in an environment very resembling Steam Runtime (which is a good de-facto standard). Add this to your environment.systemPackages: (steam.override { nativeOnly = true; newStdcpp

Re: [Nix-dev] how to 'just run binaries' in nixos

2017-03-21 Thread Roger Qiu
Replace the interpreter path. But there might be dependencies (try ldd) that it relies on that you also need to substitute. On 22/03/2017 9:42 AM, "Azul" wrote: > is there a simple way to just run binaries in nixos ? > > stuff like go binaries or other bits and bobs ? > > > ELF 64-bit LSB executa

[Nix-dev] how to 'just run binaries' in nixos

2017-03-21 Thread Azul
is there a simple way to just run binaries in nixos ? stuff like go binaries or other bits and bobs ? ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.26 ./my-binary bash: ./my-binary: No such file or directory _