[Nix-dev] ./configure && make && make install

Lluís Batlle i Rossell viric at viric.name
Tue Jan 3 17:44:17 CET 2012


On Tue, Jan 03, 2012 at 08:39:37PM +0400, Sergey Mironov wrote:
> Hi. Another beginner question. I have realized that good old
> 
> unpack-the-tarball && ./configure && make && make install
> 
> doesn't work in nixos because of missing /usr/include and /usr/lib. But how
> to organize the process of software development then? Is it possible to do
> so without writing a Nix expression? I mean the normal process of editing C
> code, debugging it and so on. Well, I am afraid it is not possible in a
> common sense, but what if I want to hack already packaged project? Can I
> hook Nix's builder.sh and make it open development console?

I use 'myEnvFun', in nixpkgs, having myEnvFun expressions in packageOverrides of
my ~/.nixpkgs/config.nix.

That creates files that you can source, and you get a build environment similar
to a nix builder according to the expression you wrote.

Take a read of nixpkgs/pkgs/misc/my-env/

Regards,
Lluís


More information about the nix-dev mailing list