nbfc-linux / nbfc-linux

NoteBook FanControl ported to Linux

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fetchFromGitHub not working

GetPsyched opened this issue · comments

I've followed the instructions given for the nixos install but I am getting the following error when rebuilding:

error:
       … while calling the 'head' builtin

         at /nix/store/i6hq63805y784dml4j8pgkrz3lryxzld-source/lib/attrsets.nix:820:11:

          819|         || pred here (elemAt values 1) (head values) then
          820|           head values
             |           ^
          821|         else

       … while evaluating the attribute 'value'

         at /nix/store/i6hq63805y784dml4j8pgkrz3lryxzld-source/lib/modules.nix:807:9:

          806|     in warnDeprecation opt //
          807|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
             |         ^
          808|         inherit (res.defsFinal') highestPrio;

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

       error: attribute 'packages' missing

       at /nix/store/syhz9b6p16m7vlgdh4g3spsl9gm8zmvv-source/system/nbfc.nix:58:28:

           57|     path = [ pkgs.kmod ];
           58|     script = let package = nbfc.packages.${pkgs.system}.nbfc; in "${package}/${command}";
             |                            ^
           59|     wantedBy = [ "multi-user.target" ];

Fixed by:

- script = let package = nbfc.packages.${pkgs.system}.nbfc; in "${package}/${command}";
+ script = "${nbfc}/${command}";

I don't use NixOS, @xnumad do you think the above fix should be incorporated in nixos-installation.md?