snowfallorg / nix-software-center

A simple gtk4/libadwaita software center to easily install and manage nix packages
GNU General Public License v3.0
572 stars 16 forks source link

Support for system-manager #67

Open ShalokShalom opened 5 months ago

ShalokShalom commented 5 months ago

I got this flake.nix:

{
  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
    nix-software-center.url = "github:snowfallorg/nix-software-center";
    system-manager = {
      url = "github:numtide/system-manager";
      inputs.nixpkgs.follows = "nixpkgs";
    };
  };

  outputs = { self, flake-utils, nixpkgs, system-manager, }: {
    systemConfigs.default = system-manager.lib.makeSystemConfig {
      modules = [
        ./modules
      ];
    };
  };
}

And this in the default.nix, the config for for system-manager:

    environment = {
      systemPackages = with pkgs; [
        inputs.nix-software-center.packages.${system}.nix-software-center
      ];
    };

This is the output:

error:
       … while calling the 'derivationStrict' builtin

         at /builtin/derivation.nix:9:12: (source not available)

       … while evaluating derivation 'system-manager'
         whose name attribute is located at /nix/store/v4pcs3nzx54m5bmxd39win0rgl2d2hbx-source/pkgs/stdenv/generic/make-derivation.nix:331:7

       … while evaluating attribute 'buildCommand' of derivation 'system-manager'

         at /nix/store/v4pcs3nzx54m5bmxd39win0rgl2d2hbx-source/pkgs/build-support/trivial-builders/default.nix:68:16:

           67|         enableParallelBuilding = true;
           68|         inherit buildCommand name;
             |                ^
           69|         passAsFile = [ "buildCommand" ]

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: undefined variable 'inputs'

       at /nix/store/0h30k7c9mrms4l26qlvkw8ag2lm4fa0x-source/modules/default.nix:9:9:

            8|       systemPackages = with pkgs; [
            9|         inputs.nix-software-center.packages.${system}.nix-software-center
             |         ^
           10|       ];
[2024-04-22T02:35:59Z ERROR system_manager] Nix build failed, see console output for details.

Is this up to system-manager, or your project?