Re: [Nix-dev] how to 'just run binaries' in nixos
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: Azulwrites: 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 write Nix in their first days of using NixOS? I would have liked a tool like this when I got started. ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] how to 'just run binaries' in nixos
Azulwrites: > 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 write Nix in their first days of using NixOS? I would have liked a tool like this when I got started. signature.asc Description: PGP signature ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] how to 'just run binaries' in nixos
thanks all, *steam-run* just works On 22 March 2017 at 11:24, Brian McKennawrote: > 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 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 >> >> >> ___ >> nix-dev mailing list >> nix-dev@lists.science.uu.nl >> http://lists.science.uu.nl/mailman/listinfo/nix-dev >> >> > ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] how to 'just run binaries' in nixos
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, Azulwrote: > 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 > > > ___ > nix-dev mailing list > nix-dev@lists.science.uu.nl > http://lists.science.uu.nl/mailman/listinfo/nix-dev > > ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] how to 'just run binaries' in nixos
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/buildenv, which may be a simpler environment than what steam-run provides. -- Proudly written in Mutt with Vim on NixOS. Q: Why is this email five sentences or less? A: http://five.sentenc.es May take up to five days to read your message. If it’s urgent, call me. ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] how to 'just run binaries' in nixos
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, for GNU/Linux 2.6.26 > > ./my-binary > bash: ./my-binary: No such file or directory > > > ___ > nix-dev mailing list > nix-dev@lists.science.uu.nl > http://lists.science.uu.nl/mailman/listinfo/nix-dev > > ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] how to 'just run binaries' in nixos
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 = true; }).run Those options make sure that you use NixOS libraries instead of binary ones from Steam and that new libstdc++ is used. Then: $ steam-run ./my-binary On 03/22/2017 01:41 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, for GNU/Linux 2.6.26 > > ./my-binary > bash: ./my-binary: No such file or directory > > > > ___ > nix-dev mailing list > nix-dev@lists.science.uu.nl > http://lists.science.uu.nl/mailman/listinfo/nix-dev -- Nikolay. ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] how to 'just run binaries' in nixos
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 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 > > > ___ > nix-dev mailing list > nix-dev@lists.science.uu.nl > http://lists.science.uu.nl/mailman/listinfo/nix-dev > > ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
[Nix-dev] how to 'just run binaries' in nixos
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 ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev