[Nix-dev] "Platform indepent installer" hardcodes /bin/chmod

2012-06-11 Thread Bryce L Nordgren
Hi. I'm trying to package "geonetwork-opensource" ( http://geonetwork-opensource.org/) for nix. They distribute the application's war-file separately, but there's an administrative tool called "gast" which is only available using their platform-independent installer. I was able to save an "install.

Re: [Nix-dev] "Platform indepent installer" hardcodes /bin/chmod

2012-06-12 Thread Bryce L Nordgren
On Tue, Jun 12, 2012 at 10:09 AM, Lluís Batlle i Rossell wrote: > On Tue, Jun 12, 2012 at 11:28:48AM +0200, Ludovic Courtès wrote: > > Hi, > > > > Bryce L Nordgren skribis: > > > > > But it seems that the java-based installer hardcodes /bin/chmod > inste

[Nix-dev] Web applications

2012-06-13 Thread Bryce L Nordgren
I looked around for nix expressions for web applications, but didn't see any. Web apps tend to be deployed into a server (httpd/tomcat/jetty) but they also have some configuration which has nothing to do with the server (database type, host, port, username, password, database name, as well as other

[Nix-dev] Fwd: Web applications

2012-06-14 Thread Bryce L Nordgren
Whoops, the list fell off the CC at some point. Sorry. On Wed, 13 Jun 2012 23:40:52 +, Bryce L Nordgren wrote: > On Wed, Jun 13, 2012 at 11:17 PM, Florian Friesdorf wrote: > > > Did you see: > > > > /etc/nixos/nixos/modules/services/web-servers/apache-httpd/ > &g

[Nix-dev] Fwd: Nixpkgs and NixOS moved to GitHub

2012-06-23 Thread Bryce L Nordgren
Drat! On this list, "reply-all" is needed. Sorry. -- Forwarded message ------ From: Bryce L Nordgren Date: Fri, Jun 22, 2012 at 4:03 PM Subject: Re: [Nix-dev] Nixpkgs and NixOS moved to GitHub To: Peter Simons On Thu, Jun 21, 2012 at 4:03 PM, Peter Simons wrote:

[Nix-dev] Referring to a path inside ${out}...in a nix expression

2012-06-25 Thread Bryce L Nordgren
Apologies if this is another dumb question, but I think I don't know the proper terms to google. I'm writing an expression (in nixpkgs) for geonetwork-opensource. This is now working as a maven build. The thing I'm putting in $out, for the moment, is the maven repository. This contains all of the

Re: [Nix-dev] Announcing free-nix: the free Linux distribution based on the Nix package manager

2012-06-26 Thread Bryce L Nordgren
> In the Linux kernel development process, the only official tree is Linus' > kernel tree. Linus only works with a small group of people each maintaining > a subsystem of the kernel, such as the memory manager, I/O scheduler etc. > These subsystem maintainers have their own tree (which they regular

Re: [Nix-dev] Anarchy

2012-06-27 Thread Bryce L Nordgren
On Wed, Jun 27, 2012 at 6:02 AM, Michael Weiss wrote: > Greetings, > > I'd like to derail the discussion about policy and focus on the parts > about how to reduce the need to agree on policy. As others have pointed > out, nix is great for having your own cake and I want to know how to > make the

Re: [Nix-dev] Improving the Developer Experience in the Nix Community

2012-06-27 Thread Bryce L Nordgren
On Wed, Jun 27, 2012 at 12:16 PM, Shea Levy wrote: > > > - On the level of Nix as a package manager, there is a way to roll back > > everything but GC > > > What do you mean, exactly? You can roll back versions of nix, and if you > use build.nix in the nix source tree you can build each component

[Nix-dev] Fwd: Improving the Developer Experience in the Nix Community

2012-06-27 Thread Bryce L Nordgren
-- Forwarded message -- From: Bryce L Nordgren Date: Wed, Jun 27, 2012 at 3:54 PM Subject: Re: [Nix-dev] Improving the Developer Experience in the Nix Community To: 7c6f4...@mail.ru On Wed, Jun 27, 2012 at 2:47 PM, Michael Raskin <7c6f4...@mail.ru> wrote: > >&g

Re: [Nix-dev] Improving the Developer Experience in the Nix Community

2012-06-27 Thread Bryce L Nordgren
> Continuing with a Java theme: the Java Advanced Imaging interfaces have a > > (default) pure java implementation as well as a native (accelerated) > > implementation. > > How should this be solved? Try find answers yourself. Its the same > problem M.R. talked about if buildfarm uses optimiziatio

Re: [Nix-dev] Improving the Developer Experience in the Nix Community

2012-06-27 Thread Bryce L Nordgren
Specifics aside (because they were just examples, sometimes poor ones), the point here is that Nix can only express tightly coupled dependencies. Lack of the ability to correctly express loosely coupled relationships causes needless rebuilds. It really doesn't matter whether Java has achieved perfe

Re: [Nix-dev] Improving the Developer Experience in the Nix Community

2012-06-27 Thread Bryce L Nordgren
On Wed, Jun 27, 2012 at 4:48 PM, Shea Levy wrote: > Well, to be honest I was more hoping for suggestions about how to > improve the developer community, policies, etc. rather than technical > improvements. But ideas for those are always good too, so please keep > discussing :) > Did you see: ht

[Nix-dev] Fwd: Improving the Developer Experience in the Nix Community

2012-06-29 Thread Bryce L Nordgren
Arrrgh! This is the only list I'm on where "reply" means reply just to the sender! Sorry for consistently dropping the list off of replies. -- Forwarded message ------ From: Bryce L Nordgren Date: Fri, Jun 29, 2012 at 4:48 PM Subject: Re: [Nix-dev] Improving the Devel

[Nix-dev] Fwd: Fwd: Improving the Developer Experience in the Nix Community

2012-07-10 Thread Bryce L Nordgren
Again I replied only to an individual. D'oh. I sense this is going to be a pattern with me and this list. -- Forwarded message -- From: Bryce L Nordgren Date: Tue, Jul 10, 2012 at 8:53 AM Subject: Re: [Nix-dev] Fwd: Improving the Developer Experience in the Nix Communi

[Nix-dev] Dependency Semantics

2012-07-10 Thread Bryce L Nordgren
Hi list, I want to suggest something to see what you think. Nix currently supports a single meaning for its dependency relation, which essentially can be summed up as "Depends on exact build of". As in, GDAL GEOS(hash here). This is an enormously successful model, but it does force you to comple

Re: [Nix-dev] Dependency Semantics

2012-07-11 Thread Bryce L Nordgren
On Wed, Jul 11, 2012 at 12:53 AM, Mathijs Kwik wrote: > > But the same thing cannot be said about > Ruby (in all fairness: Ruby's main goal never was to be a VM) and most > other environments. Also, some of these "language/platform environments" > have optional components. Let's say some imaging

Re: [Nix-dev] Dependency Semantics

2012-07-11 Thread Bryce L Nordgren
On Wed, Jul 11, 2012 at 2:10 PM, Mathijs Kwik wrote: > Bryce L Nordgren writes: > > > On Wed, Jul 11, 2012 at 12:53 AM, Mathijs Kwik > wrote: > > > > There may be a couple of things I didn't articulate well. > > > > 1] I don't see these new sem

Re: [Nix-dev] Dependency Semantics

2012-07-12 Thread Bryce L Nordgren
I'm not saying you shouldn't. But the current build system finds out > about the breakage, so the maintainer can investigate and put the extra > dependency there. You have to understand that most package expressions > are probably created as a bare minimum, just adding the stuff the > builder/insta

Re: [Nix-dev] Dependency Semantics

2012-07-12 Thread Bryce L Nordgren
On Thu, Jul 12, 2012 at 12:40 PM, Mathijs Kwik wrote: > That's not what I was talking about, the python expression didn't change > in my example. Just a (made up) underlying graphics library. > That triggers a python rebuild, which can't use the new gfx version, so > it builds without bindings for

Re: [Nix-dev] Dependency Semantics

2012-07-17 Thread Bryce L Nordgren
On Fri, Jul 13, 2012 at 12:46 AM, Mathijs Kwik wrote: > Bryce L Nordgren writes: > > > On Thu, Jul 12, 2012 at 12:40 PM, Mathijs Kwik > wrote: > > Your quest seems to not really lead to special/new/powerful properties, > just saves a few cpu cycles, while (if not used

Re: [Nix-dev] reverse dependencies

2012-07-23 Thread Bryce L Nordgren
On Sat, Jul 21, 2012 at 10:15 AM, Florian Friesdorf wrote: > On Sat, 21 Jul 2012 18:10:23 +0200, Marc Weber > wrote: > > Excerpts from Florian Friesdorf's message of Sat Jul 21 17:50:55 +0200 > 2012: > > > how do we get all packages using a derivation (e.g. python27) either > > > directly or indi

Re: [Nix-dev] How can we test changes before pushing them to master?

2012-07-24 Thread Bryce L Nordgren
If I could ask the dumb question...Certainly a particular build has only one derivation (the "deriver" in the manifest), but can a derivation have more than one build? I notice that "References" in the manifest refers to other builds, not to other derivations. I assume there's a reason for the dist

[Nix-dev] added ldap extension to php

2012-09-27 Thread Bryce L Nordgren
I don't know how to do a pull request for a single commit on github, or I'd just do it there. It's trying to pull in all the changes on my development branch. https://github.com/bnordgren/nixpkgs-1/commit/837fbd82897eb53cf7237f4badaf49adcd6d3445 This commit only has one thing not related to addin

[Nix-dev] [PATCH-in-git-commit] Fixed Openssh HPN support

2012-10-04 Thread Bryce L Nordgren
I note that the most recent patch for openssh hpn support is for 5.9p1 and the current openssh release is at 6.1p1. The patch doesn't apply cleanly against current sources. Also, the old URL for the patch is no longer working (upstream is apparently using a file manager called "Remository" which do

Re: [Nix-dev] [PATCH-in-git-commit] Fixed Openssh HPN support

2012-10-05 Thread Bryce L Nordgren
On Fri, Oct 5, 2012 at 1:39 AM, Lluís Batlle i Rossell wrote: > On Fri, Oct 05, 2012 at 12:57:40AM +0000, Bryce L Nordgren wrote: > > I did make a patch against 6.1p1 by manually entering the 3 rejected > hunks. > > My limited testing with both 5.9p1 and 6.1p1 quickly led to sta

[Nix-dev] apache submodules (production + sandbox) + drupal package

2012-10-12 Thread Bryce L Nordgren
Hi all. I packaged drupal (sort of). I have a tarball with all the files in the standard drupal distribution + all the modules I need for my site. My apache submodule nix expression extracts this tarball and fills in the basic parameters (database type/username/password; public and private upload

[Nix-dev] linux-headers 2.6.35.14 on a system running 3.2.31?

2012-10-20 Thread Bryce L Nordgren
I ran nix-store -qR /nix/store/...-php-5.3.15 and discovered linux headers for the wrong kernel version. (This is a different store location than you likely have because I compiled PHP with ldap support.) I tried different php versions...back to 5.3.6 and up to 5.3.18 with the same result. The off

[Nix-dev] nix-env and nixos-rebuild cannot start workers

2013-03-07 Thread Bryce L Nordgren
I just tried to update a six month old nixos distribution and ran into a wall. At one point in time, I was getting parse errors. Then I did a nix-env -i nix to get a new version of the package manager. Now it seems that no matter what I do, some file somewhere causes a "error: cannot start worker (

[Nix-dev] Fwd: nix-env and nixos-rebuild cannot start workers

2013-03-08 Thread Bryce L Nordgren
Urgh. Sorry about private reply. -- Forwarded message -- From: Bryce L Nordgren Date: Fri, Mar 8, 2013 at 8:08 AM Subject: Re: [Nix-dev] nix-env and nixos-rebuild cannot start workers To: Vladimír Čunát On Fri, Mar 8, 2013 at 2:06 AM, Vladimír Čunát wrote: > Hi, >

[Nix-dev] Fwd: nix-env and nixos-rebuild cannot start workers

2013-03-08 Thread Bryce L Nordgren
Again with the private reply. -- Forwarded message -- From: Bryce L Nordgren Date: Fri, Mar 8, 2013 at 11:25 AM Subject: Re: [Nix-dev] nix-env and nixos-rebuild cannot start workers To: Vladimír Čunát On Fri, Mar 8, 2013 at 2:06 AM, Vladimír Čunát wrote: > What

Re: [Nix-dev] cannot start worker (unexpected end-of-file)

2013-03-18 Thread Bryce L Nordgren
On Mon, Mar 18, 2013 at 3:46 PM, Bjørn Forsman wrote: > > Hm... I thought NixOS had atomic upgrades? Or, if things broke anyway, > that it would be fixable without using external tools. What's going > on? > My best guess is that something became messed up with a behind-the-scenes database file. Th

Re: [Nix-dev] Stable NixOS releases

2013-05-14 Thread Bryce L Nordgren
Why not make a Nix friendly solution to NixOS stable? 1] Make a reference to a particular git branch/commit in the nix store. 2] Retrieve the reference; 3] Build the system off of the nix expressions in the reference. Currently, Nix lacks a way to uniquely reference the complete Nix expression fr

[Nix-dev] Beginner question about external recipes

2011-12-02 Thread Bryce L Nordgren
Hello. I'm still wrapping my brain around Nix/Nixos/nixpkgs. I have a concept in my head which is so basic it's probably been had before, so I was hoping that someone could set me straight relatively easily. I understand you have a stdenvNative environment, which essentially allows you to use the

Re: [Nix-dev] Beginner question about external recipes

2011-12-05 Thread Bryce L Nordgren
I guess you could write 80% succesful converter of Debian packages into > Nix expressions, but that would be a lot of work. > More or less, I was thinking of Nix expressions to control some external packaging mechanism (apt, makechrootpkg/pacman, rpmbuild/rpm) rather than trying to convert the rec

Re: [Nix-dev] Beginner question about external recipes

2011-12-06 Thread Bryce L Nordgren
On Tue, Dec 6, 2011 at 4:36 AM, Michael Raskin <7c6f4...@mail.ru> wrote: > >For context, my near term interest is to control an ArchLinux environment > >1] rollback capability > >2] better closure determination for "point upgrades" (individual > packages). > >3] Automatic rebuilds of "customized"

Re: [Nix-dev] Disaster recovery / re-deployment

2012-01-05 Thread Bryce L Nordgren
On Thu, Jan 5, 2012 at 5:32 AM, Rickard Nilsson wrote: > Hi, > > On Tue, 03 Jan 2012 15:47:23 +0100, Florian Friesdorf > wrote: > > Hi Rickard, > > > > On Tue, 04 Oct 2011 11:45:14 +0200, "Rickard Nilsson" > > wrote: > >> > However in your case > >> > http://mawercer.de/~marc/minimal-install-

[Nix-dev] Selecting a version of postgresql

2012-02-02 Thread Bryce L Nordgren
Newbie question here: I noted that simply enabling services.postgresql in the configuration.nix file installed version 8.3.4. My (possibly ignorant and misguided) attempt to change which version was installed results in a postgresql service which hangs on startup. Configuration.nix snippet: serv

Re: [Nix-dev] Selecting a version of postgresql

2012-02-03 Thread Bryce L Nordgren
I did some more rooting around. First, postgresql 9.0.5 was dying because the database files were initialized with postgresql 8.3.4. Then I deleted /var/db/postgresql, killed the "hung" pre-start init process and did a "start postgresql". Now the server is dying because it cannot load pg_hba.conf (

[Nix-dev] Bug in postgresql service + postgresql 9.0.6 patch

2012-02-07 Thread Bryce L Nordgren
Attached, pls find the patch for latest version in postgresql 9.0.x series. I found out why my postgresql84 and postgresql90 services were crashing. The default value for services.postgresql.authentication is mal-formed for these two versions. Apparently, it works fine for postgresql83. The last

[Nix-dev] nix - libtool interactions?

2012-02-10 Thread Bryce L Nordgren
I'm currently trying to get postgis 2.0.0 alpha 4 (w/raster and topology support) packaged on nix. I'm hitting something about libtool's behavior that I just don't understand, and it seems pretty nix specific. I'm posting here to see if there's a "well known" libtool/nix quirk that will short-circ

[Nix-dev] libtool + gdal 1.9.0 unhappiness

2012-02-11 Thread Bryce L Nordgren
I've been beating my head against a wall trying to get postgis 2.0.0 alpha4 to compile on Nixos for the past couple of days. I've narrowed my problem down to "anything which tries to link against gdal using libtool will fail." I made a super simple gdal test program (print gdal version then exit) t

[Nix-dev] [PATCHES] vsftpd and filesystems

2012-02-23 Thread Bryce L Nordgren
The following two patches are to address some issues I had trying to setup an ftp server with btrfs. vsftpd.patch : Patched to create an "upload" directory with the correct permissions if cfg.anonymousUser is true and cfg.anonymousUploadEnable is also true. Previously, an upload directory would ha

Re: [Nix-dev] [PATCHES] vsftpd and filesystems

2012-02-25 Thread Bryce L Nordgren
On Sat, Feb 25, 2012 at 12:45 AM, Mathijs Kwik wrote: > On Fri, Feb 24, 2012 at 5:41 PM, Bryce L Nordgren > wrote: > > > > > > Tried that. No go. Correct me if I'm wrong, but I think initrd is > "stage1" > > and filesystems.nix, as an upstart j

[Nix-dev] Nix store as a provenance aware storage system

2012-02-28 Thread Bryce L Nordgren
Stumbled across this concept today: http://static.usenix.org/events/usenix06/tech/full_papers/muniswamy-reddy/muniswamy-reddy_html/ If I read this correctly, the nix store is conceptually equivalent to a provenance-aware storage system in the context of a "build" workflow, implemented on top of a

[Nix-dev] Building appliances with nixos

2012-02-28 Thread Bryce L Nordgren
On Mon, Feb 27, 2012 at 10:12 PM, Marc Weber wrote: > And then? Do the same as current buildfarm does? Duplicate work by > building subversion revisions? > This dovetails pretty well with some thoughts which have recently been hounding me. Currently, you have a generic nixpkgs tree for individua

Re: [Nix-dev] [PATCHES] vsftpd and filesystems

2012-02-28 Thread Bryce L Nordgren
On Sat, Feb 25, 2012 at 7:33 PM, Bryce L Nordgren wrote: > > Can you give it a try and report back here (don't forget to cc nix-dev)? > > The patch didn't work as it stood. The modprobe line immediately before the "btrfs device scan" line is required. N

Re: [Nix-dev] [PATCHES] vsftpd and filesystems

2012-02-28 Thread Bryce L Nordgren
2012/2/28 Lluís Batlle i Rossell > > Adding only "btrfs" will fail; I've had to add [ "btrfs" "zlib_deflate" > "libcrc32c" "crc32c" ] to the boot.initrd for btrfs to load fine. > eep. not using modprobe? I had been assuming that the mechanism used to load kernel modules would pick up dependen

[Nix-dev] Github mirrors of nixos and nixpkgs

2012-02-29 Thread Bryce L Nordgren
I made these to start fiddling with the "appliance" concept. They are "rebased" every hour. They're not official in any way, but if you don't already have access to the subversion repo (or if you want to do things relevant to a local installation rather than something which should be applied to eve

Re: [Nix-dev] Github mirrors of nixos and nixpkgs

2012-02-29 Thread Bryce L Nordgren
Mine are rebased hourly by an otherwise idle machine in my office. However, my "focus" tends to drift to competing projects and two months from now I may not notice that it breaks. On Wed, Feb 29, 2012 at 6:42 PM, Marc Weber wrote: > Mine is "rebased" = updated once a day. But pushing to gitorio