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

[Nix-commits] [NixOS/nixpkgs] 17f566: keybase-gui: init at 20170209.17b641d

2017-02-16 Thread Brian McKenna
Branch: refs/heads/master Home: https://github.com/NixOS/nixpkgs Commit: 17f566d1e191290683fac0b3e93428db12e5dd13 https://github.com/NixOS/nixpkgs/commit/17f566d1e191290683fac0b3e93428db12e5dd13 Author: Brian McKenna <br...@brianmckenna.org> Date: 2017-02-17 (Fri, 17 Fe

Re: [Nix-dev] docker import ignores dockerTools.buildImage config

2016-09-26 Thread Brian McKenna
Yes, it's "docker load" instead of "docker import" The escaping thing is due to jshon trying to support generating JSON which can be inserted into a tag. It adds a backslash so that it never generates the string "" On 26/09/2016, Michael Fellinger wrote: > Try using

[Nix-commits] [NixOS/nixpkgs] c816d0: genymotion: init at 2.7.2 (#17203)

2016-07-24 Thread Brian McKenna
Branch: refs/heads/master Home: https://github.com/NixOS/nixpkgs Commit: c816d053bcfae77d6d6533bd8c66cf75a8686bda https://github.com/NixOS/nixpkgs/commit/c816d053bcfae77d6d6533bd8c66cf75a8686bda Author: Brian McKenna <br...@brianmckenna.org> Date: 2016-07-25 (Mon, 25 Ju

Re: [Nix-dev] Haskell workflow - ghc not in PATH - recommended way / documentation?

2016-06-23 Thread Brian McKenna
I think you might want to use: nix-shell -A env The `env` attribute creates a derivation that brings in GHC. You can generate a shell.nix via `cabal2nix --shell` which detects if you're in a shell and automatically uses the attribute. On 23 June 2016 at 19:24, Marc Weber

Re: [Nix-dev] On the sad state of remote-builds for the end-user

2016-06-15 Thread Brian McKenna
Hi Matthias, I remember a similar conversation we had a few months ago. If you use sudo, you can skip the signature checking: https://www.mail-archive.com/nix-dev@lists.science.uu.nl/msg18560.html It's not ideal - but does this same method get you unstuck? On 14 June 2016 at 01:19, Matthias

Re: [Nix-dev] Haskell dependencies in a project

2016-04-02 Thread Brian McKenna
You need to call pkgs.haskellPackages.callPackage on my-dep, so it will look something like: dependencies = with pkgs.haskellPackages; [ aeson (callpackage my-dep { }) ]; It's also possible to use the 'override' attribute instead, which would be useful if you later add a dependency

Re: [Nix-dev] Did we just get windows support for free?

2016-03-30 Thread Brian McKenna
apt-get is available, so it is possible to use a package manager, but I'm not sure which parts are read-only. On 31 March 2016 at 06:01, Mathnerd314 wrote: > The talk was scheduled before today; I think it's too early for April. > >

Re: [Nix-dev] How to use binaries from other hosts?

2016-03-14 Thread Brian McKenna
That should be: sudo nix-store --import example.closure On 14 March 2016 at 22:35, Brian McKenna <br...@brianmckenna.org> wrote: > You can skip signature checking by using root: > > sudo nix-copy-closure --import example.closure > > I found this on the Nix is

Re: [Nix-dev] [Idris] Idris packages in nixpkgs

2015-11-28 Thread Brian McKenna
Coincidentally I had started updating my Nix + Idris work just a few days ago: https://github.com/idris-hackers/idrispkgs It's much less powerful than yours but has some prepackaged libraries, for example Lightyear and idris-config. I'd love to adapt these into idris-modules now. Where should

Re: [Nix-dev] How to check which package pulls in (for example) yesod?

2015-11-03 Thread Brian McKenna
If you run: nix-store -q --tree /nix/var/nix/profiles/system You'll see a tree of dependencies for your current running system. I think git-annex uses Yesod, if you have that installed. On 4 November 2015 at 08:09, Matthias Beyer wrote: > Hi, > > I have no haskell

Re: [Nix-dev] npm instlall phantomjs not working correctly

2015-10-06 Thread Brian McKenna
I've had this problem before. PhantomJS downloads and runs a binary. The binary it downloads doesn't point to an actual linker on NixOS (hence the no such file error). You can see this: $ ls -l $(patchelf --print-interpreter node_modules/phantomjs/lib/phantom/bin/phantomjs) ls: cannot