Re: [Nix-dev] Bundling nix-expressions with source code

2013-01-28 Thread Shea Levy
On 01/28/2013 10:14 AM, Eelco Dolstra wrote: > Hi, > > On 28/01/13 14:12, Ludovic Courtès wrote: > >> In principle there could be just one expression in Nixpkgs, and the >> package’s release.nix would just use ‘overrideDerivation’ to change the >> ‘src’ attribute of that expression to point to the

Re: [Nix-dev] Bundling nix-expressions with source code

2013-01-28 Thread Eelco Dolstra
Hi, On 28/01/13 14:12, Ludovic Courtès wrote: > In principle there could be just one expression in Nixpkgs, and the > package’s release.nix would just use ‘overrideDerivation’ to change the > ‘src’ attribute of that expression to point to the result of the > ‘tarball’ job. That would kind of wor

Re: [Nix-dev] Bundling nix-expressions with source code

2013-01-28 Thread Ludovic Courtès
Hi, Eelco Dolstra skribis: > On 25/01/13 09:32, Rickard Nilsson wrote: > >>> I see nix is getting quite popular :-) >>> The maintainer is of course welcome to maintain also the nix expression >>> *within* nixpkgs, who else is a better candidate... >> >> Yes, absolutely, and that is completely O

Re: [Nix-dev] Bundling nix-expressions with source code

2013-01-28 Thread Eelco Dolstra
Hi, On 25/01/13 09:32, Rickard Nilsson wrote: >> I see nix is getting quite popular :-) >> The maintainer is of course welcome to maintain also the nix expression >> *within* nixpkgs, who else is a better candidate... > > Yes, absolutely, and that is completely OK. But you might want to keep > a

Re: [Nix-dev] Bundling nix-expressions with source code

2013-01-26 Thread Vladimír Čunát
On 01/25/2013 09:32 AM, Rickard Nilsson wrote: Den 2013-01-24 23:01:03 skrev Vladimír Čunát : I see nix is getting quite popular :-) The maintainer is of course welcome to maintain also the nix expression *within* nixpkgs, who else is a better candidate... Yes, absolutely, and that is complete

Re: [Nix-dev] Bundling nix-expressions with source code

2013-01-25 Thread Rickard Nilsson
Den 2013-01-24 23:01:03 skrev Vladimír Čunát : > On 01/24/2013 04:13 PM, Rickard Nilsson wrote: >> OK, I see why that is not feasible. The reason I ask, is that it seems >> reasonable that a Nix-aware upstream package developer should be able >> to define how the package should be built (dependenc

Re: [Nix-dev] Bundling nix-expressions with source code

2013-01-24 Thread Vladimír Čunát
On 01/24/2013 04:13 PM, Rickard Nilsson wrote: OK, I see why that is not feasible. The reason I ask, is that it seems reasonable that a Nix-aware upstream package developer should be able to define how the package should be built (dependencies, build flags etc), in tandem with the package develop

Re: [Nix-dev] Bundling nix-expressions with source code

2013-01-24 Thread Rickard Nilsson
Den 2013-01-22 14:51:24 skrev Eelco Dolstra : > Hi, > > On 22/01/13 13:05, Rickard Nilsson wrote: > >> I would like to bundle nix-expressions with some of my self-developed >> programs, and just let nixpkgs (or some custom-nixpkgs) use the >> nix-expression from the source when building the progra

Re: [Nix-dev] Bundling nix-expressions with source code

2013-01-22 Thread Eelco Dolstra
Hi, On 22/01/13 13:05, Rickard Nilsson wrote: > I would like to bundle nix-expressions with some of my self-developed > programs, and just let nixpkgs (or some custom-nixpkgs) use the > nix-expression from the source when building the program. Is this a wise > thing to do? Is it even possib

Re: [Nix-dev] Bundling nix-expressions with source code

2013-01-22 Thread Marc Weber
Excerpts from Rickard Nilsson's message of Tue Jan 22 13:05:09 +0100 2013: > I would like to bundle nix-expressions with some of my self-developed > programs, and just let nixpkgs (or some custom-nixpkgs) use the > nix-expression from the source when building the program. Is this a wise > thi

[Nix-dev] Bundling nix-expressions with source code

2013-01-22 Thread Rickard Nilsson
Hi, I would like to bundle nix-expressions with some of my self-developed programs, and just let nixpkgs (or some custom-nixpkgs) use the nix-expression from the source when building the program. Is this a wise thing to do? Is it even possible? A pseudo-example: nixpkgs: ... myprog_sr