[Nix-dev] nix-build -A builds everything

2015-11-19 Thread Dieter Vekeman
Hi I’m trying to create a nix package (for the odoo suite https://github.com/odoo/odoo/tree/8.0). I checked out nixpkgs created a folder in pkgs/applications/networking/odoo This is what I have so far # cat ./pkgs/applications/networking/odoo/default.nix { stdenv, fetchurl, buildPythonPackage,

Re: [Nix-dev] nix-build -A builds everything

2015-11-19 Thread Guillaume Maudoux (Layus)
Hi, The problem is that you build odoo within the nixpkgs defined by the master branch. As the master branch defines derivations more recent than the ones installed, it needs to instantiate them. But these derivations are so new that even hydra did not build them yet, so you have no binary

Re: [Nix-dev] nix-build -A builds everything

2015-11-19 Thread Guillaume Maudoux (Layus)
Hi, Neat trick. Am I right however to say that this does not work if your own channel is not up to date. Nothing forces branch channels/nixos-unstable on github.com/NixOS/nixpkgs-channels to point at the same revision as the one in /nix/var/nix/profiles/per-user/root/channels/nixos/svn-revision.

Re: [Nix-dev] nix-build -A builds everything

2015-11-19 Thread Eelco Dolstra
Hi, On 19/11/15 16:10, Guillaume Maudoux (Layus) wrote: > Neat trick. > > Am I right however to say that this does not work if your own channel is > not up to date. It does work (in that you always get binaries from the cache), but it might download more stuff than if you match your current

Re: [Nix-dev] nix-build -A builds everything

2015-11-19 Thread Eelco Dolstra
Hi, On 19/11/15 11:46, Guillaume Maudoux (Layus) wrote: > To get binary support, you should develop on a branch based on the same > commit as you current channel. > See > https://nixos.org/wiki/Create_and_debug_nix_packages#Tracking_upstream_changes_and_avoiding_extra_rebuilding > for extra