nixos-rebuild (nixos-option) compilation error while attempting to build with latest snapshot ( b0e6f359 - 2024/09/17 ) on staging-next #36

Closed
opened 2024-09-26 00:51:31 +00:00 by fabianhjr · 3 comments
Contributor

Was building on latest staging-next

/build/src/nixos-option.cc:372:30: error: invalid use of member function 'const nix::Bindings* nix::Value::attrs() const' (did you forget the '()' ?)
/build/src/nixos-option.cc:384:86: error: 'fromCwd' is not a member of 'nix::CanonPath'
/build/src/nixos-option.cc:433:23: error: 'const struct nix::Value' has no member named 'string'; did you mean 'mkString'?

{
  inputs = {
    # nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    # nixpkgs.url = "github:NixOS/nixpkgs/staging-next";
    nixpkgs.url = "flake:localnixpkgs";

    home-manager = {
      url = "github:nix-community/home-manager/master";
      inputs.nixpkgs.follows = "nixpkgs";
    };

    # lix-module = {
    #   url = "https://git.lix.systems/lix-project/nixos-module/archive/b0e6f359500d66670cc16f521e4f62d6a0a4864e.tar.gz";
    #   inputs.nixpkgs.follows = "nixpkgs";
    # };
  };
  outputs = { self, nixpkgs, home-manager, /* lix-module, */ ... }@attrs: {
    nixosConfigurations.fabian-desktop = nixpkgs.lib.nixosSystem {
      system = "x86_64-linux";
      specialArgs = attrs;
      modules = [
        ./configuration.nix

        home-manager.nixosModules.home-manager {
          home-manager.useGlobalPkgs = true;
          home-manager.useUserPackages = true;

          home-manager.users.fabian = import ./home/fabian.nix;
        }

        # lix-module.nixosModules.default
      ];
    };
  };
}
Was building on latest staging-next ``` /build/src/nixos-option.cc:372:30: error: invalid use of member function 'const nix::Bindings* nix::Value::attrs() const' (did you forget the '()' ?) /build/src/nixos-option.cc:384:86: error: 'fromCwd' is not a member of 'nix::CanonPath' /build/src/nixos-option.cc:433:23: error: 'const struct nix::Value' has no member named 'string'; did you mean 'mkString'? ``` ``` { inputs = { # nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; # nixpkgs.url = "github:NixOS/nixpkgs/staging-next"; nixpkgs.url = "flake:localnixpkgs"; home-manager = { url = "github:nix-community/home-manager/master"; inputs.nixpkgs.follows = "nixpkgs"; }; # lix-module = { # url = "https://git.lix.systems/lix-project/nixos-module/archive/b0e6f359500d66670cc16f521e4f62d6a0a4864e.tar.gz"; # inputs.nixpkgs.follows = "nixpkgs"; # }; }; outputs = { self, nixpkgs, home-manager, /* lix-module, */ ... }@attrs: { nixosConfigurations.fabian-desktop = nixpkgs.lib.nixosSystem { system = "x86_64-linux"; specialArgs = attrs; modules = [ ./configuration.nix home-manager.nixosModules.home-manager { home-manager.useGlobalPkgs = true; home-manager.useUserPackages = true; home-manager.users.fabian = import ./home/fabian.nix; } # lix-module.nixosModules.default ]; }; }; } ```
Owner

that's what i noticed and which led to filing #35

that's what i noticed and which led to filing https://git.lix.systems/lix-project/nixos-module/issues/35
Author
Contributor

Thanks for the pointer on the more general issue @jade.

I think I have a hacky idea on how to dynamically establish the nix version, opened a pull request: #37

Thanks for the pointer on the more general issue @jade. I think I have a hacky idea on how to dynamically establish the nix version, opened a pull request: https://git.lix.systems/lix-project/nixos-module/pulls/37
Author
Contributor

Closed due to merge of 37 which resolved this issue

Closed due to merge of 37 which resolved this issue
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/nixos-module#36
No description provided.