[Nix-dev] upgrading packer

Kamil Chmielewski kamil.chm at gmail.com
Fri May 13 11:28:20 CEST 2016


A little sidenote ;). I want to make easier to create new or update
existing Go apps and its dependencies with tools like go2nix.
I need a feedback for my proposal
https://github.com/NixOS/nixpkgs/pull/13819#issuecomment-214992581
There'e a PoC of 2 packages generated with modified go2nix that shares same
dependencies in json file.

--
Kamil


2016-05-13 10:44 GMT+02:00 zimbatm <zimbatm at zimbatm.com>:

> Sorry, I made it sound more easy that it was. For some reason I thought
> they had vendored all the dependencies.
>
> I took a stab at the update yesterday and here is the PR:
> https://github.com/NixOS/nixpkgs/pull/15426/files
>
> What I had to do was checkout packer at the specific tag, run `godep
> restore` and then `go2nix save`. Copy the generated `default.nix` to
> overwrite the `deps.nix` file. And then the tricky part was to get packer
> to build properly using all of this since they have a custom build pipeline.
>
> On Thu, 12 May 2016 at 17:36 Samuel <samuelrivas at gmail.com> wrote:
>
>> What do you mean by upgrading packer itself? If I just bump the packer
>> reference in deps.nix, that cannot update the rest of the dependencies
>> (they are part of the expression, so they need to be evaluated before
>> building). Am I misunderstanding your suggestion?
>>
>>
>> On 11 May 2016 at 09:49, zimbatm <zimbatm at zimbatm.com> wrote:
>> > Did you try just upgrading packer itself? I believe those dependencies
>> are
>> > included during the build now
>> >
>> >
>> > On Wed, 11 May 2016 08:39 Samuel, <samuelrivas at gmail.com> wrote:
>> >>
>> >> Hi,
>> >>
>> >> I took a brief look into upgrading packer in nixpkgs, but it seems
>> >> that it has a long list of hardcoded dependencies
>> >>
>> >> (
>> https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/tools/packer/deps.nix
>> ).
>> >> Is there any automation to bump those or is it a manual process?
>> >>
>> >> In the meanwhile I've written an expression that downloads the
>> >> official binaries:
>> >>
>> >>
>> >>
>> https://github.com/samuelrivas/monorepo/blob/packer/nix/pkgs/development/tools/packer/default.nix
>> >>
>> >> But I assume that's not a change that I should pull request. Just let
>> >> me know otherwise.
>> >>
>> >> Best
>> >> --
>> >> Samuel
>> >> _______________________________________________
>> >> nix-dev mailing list
>> >> nix-dev at lists.science.uu.nl
>> >> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>>
>>
>>
>> --
>> Samuel
>>
>
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20160513/6003e696/attachment.html 


More information about the nix-dev mailing list