Skip to content

Building NIX in NIX #95

Closed
Closed

Description

@federicosacerdoti

I'm trying to build the nix-1.3 tools in NIX. Have you done this before? It seems the makefile tries to change permissions on /nix/var/nix/db, which of course it is not allowed to do. There may be multiple versions of nix in nix, none should be trying to alter global paths of course.

Perhaps there is a --build-in-nix configure flag. I tried --with-store-dir=$out/store, but that didn't help.

I fixed this by patching the makefile so install-data-local target was not run by make install. Not the prettiest fix. Is there a cleaner way?

Activity

  1. edolstra commented on Feb 26, 2013

    @edolstra
    Member

    See pkgs/tools/package-management/nix/default.nix in Nixpkgs. You should use the --disable-init-state flag.

  2. federicosacerdoti commented on Feb 26, 2013

    @federicosacerdoti
    Author

    Perfect. Found this myself actually, sorry for not updating the ticket.

    I did sed the Makefile to add big-I include paths to perlFlags to point to perl-DBD and perl-DBI modules in NIX. Works great, the shebang is very long and just what I want.

    Perl is much better than Python for parsing the shebang args.

    Thanks
    FDS

    Sent from my iPhone

    On Feb 26, 2013, at 7:13 AM, Eelco Dolstra [email protected] wrote:

    See pkgs/tools/package-management/nix/default.nix in Nixpkgs. You should use the --disable-init-state flag.

    —
    Reply to this email directly or view it on GitHub.

  3. added a commit that references this issue on Jan 1, 2024
  4. added a commit that references this issue on Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions