Re: [Nix-dev] upgrading packer

2016-05-13 Thread Samuel
> 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

Awesome, thanks!

> 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.

Might make sense to dump this into a script (or a comment in the worst
case) along with the derivation.

-- 
Samuel
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] upgrading packer

2016-05-13 Thread Kamil Chmielewski
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 :

> 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  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  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,  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@lists.science.uu.nl
>> >> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>>
>>
>>
>> --
>> Samuel
>>
>
> ___
> 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] upgrading packer

2016-05-13 Thread zimbatm
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  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  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,  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@lists.science.uu.nl
> >> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
>
>
> --
> Samuel
>
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] upgrading packer

2016-05-12 Thread Samuel
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  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,  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@lists.science.uu.nl
>> http://lists.science.uu.nl/mailman/listinfo/nix-dev



-- 
Samuel
___
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


Re: [Nix-dev] upgrading packer

2016-05-11 Thread zimbatm
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,  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@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] upgrading packer

2016-05-11 Thread Samuel
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@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev