Re: [Nix-dev] Project environment setup

2016-07-18 Thread Alex Berg
Also, you probably already found it, but there is some docs in the nixpkgs manual, called "11.2.5. How to create ad hoc environments for nix-shell" On Mon, Jul 18, 2016 at 9:41 PM, Alex Berg wrote: > Looks like that shell.nix file is correct. > > That load-time is only the fi

Re: [Nix-dev] Project environment setup

2016-07-18 Thread Alex Berg
Looks like that shell.nix file is correct. That load-time is only the first time, right? On the first run, all dependencies are fetched, but after that there is no need. What are you expecting? If you enter that nix-shell, you'll have a `gradle` command. Are you expecting a `java` command, also?

Re: [Nix-dev] Improve docs for overrideDerivation - overridable attributes

2016-07-12 Thread Alex Berg
I updated the "overrideDerivation" docs yesterday to clarify this. Was merged today. https://github.com/NixOS/nixpkgs/pull/16867 Thanks, all! On Fri, Jul 1, 2016 at 10:00 AM, Profpatsch wrote: > On 16-06-30 11:18am, Alex Berg wrote: > > Where can I find explanation for

[Nix-commits] [NixOS/nixpkgs] b5a95b: Improve overrideDerivation docs. (#16867)

2016-07-12 Thread Alex Berg
Branch: refs/heads/master Home: https://github.com/NixOS/nixpkgs Commit: b5a95b181297da1f2bb720cc0f3338d16a8c4355 https://github.com/NixOS/nixpkgs/commit/b5a95b181297da1f2bb720cc0f3338d16a8c4355 Author: Alex Berg Date: 2016-07-12 (Tue, 12 Jul 2016) Changed paths: M doc

Re: [Nix-dev] Improve docs for overrideDerivation - overridable attributes

2016-06-30 Thread Alex Berg
. :) Much appreciated, Layus! On Thu, Jun 30, 2016 at 12:01 PM, Layus wrote: > On 30/06/16 20:18, Alex Berg wrote: > > I created a new "~/.nixpkgs/config.nix" file to customize the > nix-channel-obtained nixpkgs copy on my system - my goal was to bump the > version of Vim

[Nix-dev] Improve docs for overrideDerivation - overridable attributes

2016-06-30 Thread Alex Berg
I created a new "~/.nixpkgs/config.nix" file to customize the nix-channel-obtained nixpkgs copy on my system - my goal was to bump the version of Vim to a specific version. My first attempt was to override the derivation and simply set the "version" attribute, like this: { packageOverrides = pk

[Nix-dev] How to version-bump haskell package in nix-shell?

2014-12-14 Thread Alex Berg
I have a shell.nix file to give me a shell which has PureScript in it. I sometimes want to version-bump that. How do I do that? I pasted my shell.nix file at the bottom of this message, which includes a few attempts at doing this. I see that boothead is doing what I want in his shell.nix [1], but

Re: [Nix-dev] NPM package - Bower dependency can't find dependency

2014-11-25 Thread Alex Berg
git which ]; shellHook = '' echo "Patching NODE_PATH" export NODE_PATH=$NODE_PATH:/nix/store/hhpwgi9k2j3c0r4q6rn0l0cf1r8vf98q-node-es5-ext-0.10.4/lib/node_modules ''; }; } On Sat, Nov 22, 2014 at 10:32 AM, Alex Berg wro

[Nix-dev] NPM package - Bower dependency can't find dependency

2014-11-22 Thread Alex Berg
I'm working on this today to narrow down where the issue lies, so I want to poll other's progress on this. I believe it's related to propagated build-inputs. I am trying to use purescript, grunt, and bower. All are working fine, but bower is not. The error message is pasted below. What's the sta

Re: [Nix-dev] This Week in NixOS

2014-05-25 Thread Alex Berg
I think this is really valuable thing. Please do contact someone if you need help with that. A buddy makes the load lighter. On May 25, 2014 1:23 PM, "Georges Dubus" wrote: > Hello there > > I mentioned the idea on irc some time ago, and I finally gathered the > courage to do it : here is the fir

Re: [Nix-dev] Restructuring of the Wiki

2014-05-19 Thread Alex Berg
May 19, 2014 at 7:13 PM, Alex Berg wrote: > >> Thanks for the link to past discussion on this topic, Cillian. That was a >> good discussion. Also, thank you, Third3ye, for contributing to the wiki >> effort and raising Nix wiki awareness. >> >> ### On the Nix Wiki &g

Re: [Nix-dev] Restructuring of the Wiki

2014-05-19 Thread Alex Berg
Thanks for the link to past discussion on this topic, Cillian. That was a good discussion. Also, thank you, Third3ye, for contributing to the wiki effort and raising Nix wiki awareness. ### On the Nix Wiki A wiki is a low-barrier way to build a database of eventually consistent and correct info.

Re: [Nix-dev] stripHash

2014-04-07 Thread Alex Berg
I thought the documentation for the standard environment in the Nix manual needed, some updating, so I wrote a wiki page a few months ago. There's a section there which describes all of those library functions [1]. I didn't see anything which suggests it is printed to stdout. Here's the current imp

Re: [Nix-dev] Help creating a custom app with Nix package manager

2014-02-28 Thread Alex Berg
Yo Asus, you're a bit slow receiving a response from the list for this issue. Apologies! That error message - "cannot auto-call a function..." - this occurs when when you call a Nix function but don't supply a requested value. Here's [1] a page on the NixOS wiki where I'm trying to gather common

Re: [Nix-dev] Maintainership

2014-01-28 Thread Alex Berg
Rather than removing unmaintained packages, can we make them available as a separate, opt-in channel? On Jan 28, 2014 6:43 PM, "Jan Malakhovski" wrote: > On Tue, 28 Jan 2014 10:36:39 -0500 > Shea Levy wrote: > > > Thoughts? If we did decide this was a good idea, we should set aside > > some time

Re: [Nix-dev] how to overwrite a derivation in nix

2014-01-10 Thread Alex Berg
I've got a page on this topic in the wiki tree I'm working on. Maybe it can help you. https://nixos.org/wiki/Nix_Modifying_Packages Let me know if it's missing your use-case, I'll try to add to it. On Jan 10, 2014 5:57 AM, "Marc Weber" wrote: > option 1: use ~/.nixpkgs/config.nix, see wiki "how

Re: [Nix-dev] A generic wrapper method (possibly)

2013-12-02 Thread Alex Berg
I am interested in this topic. I don't completely understand the problem here, but maybe I can help by discussing it. The motivation for the addition of "runtimeInputs" is primarily to support language interpreters and their libraries? I really don't like to use "wrapper", this term. I feel that

Re: [Nix-dev] How to use Generated Rubygems Nix Packages?

2013-11-30 Thread Alex Berg
rne! On Nov 30, 2013 5:34 PM, "Bjørn Forsman" wrote: > Hi Alex, > > On 30 November 2013 07:03, Alex Berg wrote: > > I'm looking at the "ruby/generated.nix" file: > > > https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/interpret

[Nix-dev] How to use Generated Rubygems Nix Packages?

2013-11-29 Thread Alex Berg
I'm looking at the "ruby/generated.nix" file: https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/interpreters/ruby/generated.nix Does anyone know how to add these Gems as a package's dependencies? I can't find any documentation or examples. I read the code and I tried many different at

Re: [Nix-dev] Packaging Foreman

2013-11-21 Thread Alex Berg
s. Is this the right idea? [1] http://www.rubyinside.com/ruby-187-released-912.html On Tue, Nov 19, 2013 at 6:03 PM, Alex Berg wrote: > Awesome, that's exactly the info I needed. I added those as dependencies > and now I'm making progress again. Now I'm workin

Re: [Nix-dev] Packaging Foreman

2013-11-19 Thread Alex Berg
, 2013 at 5:17 PM, Oliver Charles wrote: > On 11/19/2013 09:03 AM, Alex Berg wrote: > > > > As part of the Heroku Toolbelt, I need to make a Nix package for > > Foreman. I am following the instructions to Install from Source [1]. The > > instructions say that it has many p

[Nix-dev] Packaging Foreman

2013-11-19 Thread Alex Berg
As part of the Heroku Toolbelt, I need to make a Nix package for Foreman. I am following the instructions to Install from Source [1]. The instructions say that it has many package requirements: gcc-c++ git libvirt-devel mysql-devel pg-devel openssl-devel \ libxml2-devel sqlite-devel li

Re: [Nix-dev] How to package Heroku Toolbelt?

2013-11-18 Thread Alex Berg
Thanks Vlad! I added the following attribute in the `top-level/all-packages.nix` file, right below the `ruby` attribute. rubyCurses = ruby.override { cursesSupport = true; }; Then I reinstalled Ruby and found success. Nice! $ nix-env --uninstall ruby $ nix-env --uninstall rubygems

Re: [Nix-dev] How to package Heroku Toolbelt?

2013-11-18 Thread Alex Berg
pkgs/development/interpreters/ruby/ruby-19.nix#L5but > I don't know how to compile ruby with it or not. You could check by > running `find /nix/store/ > m1mgqmkx23hyqr8sp1533x4mhcv6fpqf-ruby-1.9.3-p429/ -name readline.so`. > Usually it live be under lib/ruby/1.9.1/x86_64-linux. > > > > On 18

Re: [Nix-dev] How to package Heroku Toolbelt?

2013-11-18 Thread Alex Berg
these gems with a bundled > ruby interpreter, it's principally meant for OSes with a broken package > management like OSX and Windows (they want to avoid support for > mis-configured ruby installs). > > > On 15 November 2013 07:24, Vladimír Čunát wrote: > >> On 11/15/20

Re: [Nix-dev] how much disk do I need ?

2013-11-15 Thread Alex Berg
I was playing with NixOS a few weeks ago. I installed KDE, a web server, and some other packages. I ran out of disk space at 8 gigs, so I would suggest 16+ gigs. How much RAM is required? 4 GB should be fine. Anyone disagree? This is just a nontechnical answer, but useful as a first reply. On Nov 1

Re: [Nix-dev] How to package Heroku Toolbelt?

2013-11-14 Thread Alex Berg
ackPhase" "installPhase" "fixupPhase" ]; meta = { }; } On Thu, Nov 14, 2013 at 5:57 PM, Vladimír Čunát wrote: > On 11/14/2013 10:44 AM, Alex Berg wrote: > >> [chexxor@nixos:~]$ nix-build /my-sources/pkgs/top-level/all-packages.nix >> -A heroku

Re: [Nix-dev] Wiki spam

2013-11-14 Thread Alex Berg
I'd like to help. I've been trying to organize it lately. On Nov 13, 2013 11:12 PM, "Eelco Dolstra" wrote: > Hi all, > > I've done another purge of spam pages / accounts on the wiki [1]. Let's > try to > keep it spam-free this time :-) If you care about making/keeping the wiki > useful and want

[Nix-dev] How to package Heroku Toolbelt?

2013-11-14 Thread Alex Berg
How do I package the Heroku Toolbelt? - https://toolbelt.heroku.com It looks like the Ubuntu installer includes Ruby and some other stuff, so I think I should just package the "Standalone" option. This option tells me to download and run a shell script - htt

Re: [Nix-dev] Help Testing New Package

2013-11-14 Thread Alex Berg
Awesome, I finally got it working with this command. (I'm working on a new package now.) nix-build /my-sources/pkgs/top-level/all-packages.nix -A heroku-toolbelt Thanks Marc! On Wed, Nov 13, 2013 at 9:09 AM, Marc Weber wrote: > Excerpts from Alex Berg's message of Wed Nov 13 01:59:24 +010

[Nix-dev] Help Testing New Package

2013-11-12 Thread Alex Berg
I am trying to make a new package in my fork of NixPkgs. Steps taken: - Copy similar package (sublime-text-2 to create sublime-text-3) - Update a few values Now, I want to test this package. I read on the wiki that I should be able to use "nix-build -A libfoo", but this is not working for me. He