Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't override package of home-manager module #541

Open
noib3 opened this issue Aug 12, 2024 · 0 comments
Open

Can't override package of home-manager module #541

noib3 opened this issue Aug 12, 2024 · 0 comments

Comments

@noib3
Copy link

noib3 commented Aug 12, 2024

Setting a custom package results in the following error:

Error
$ home-manager switch
error:
       … while calling the 'derivationStrict' builtin

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

       … while evaluating derivation 'home-manager-generation'
         whose name attribute is located at /nix/store/iqxdbcjlg9wx8gdc8bdhy9nsd5imcbjp-source/pkgs/stdenv/generic/make-derivation.nix:334:7while evaluating attribute 'buildCommand' of derivation 'home-manager-generation'

         at /nix/store/iqxdbcjlg9wx8gdc8bdhy9nsd5imcbjp-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: attribute 'override' missing

       at /nix/store/4wkq348fml5949q5gbyz4fh7y438qzx7-source/nix/hm-module.nix:62:13:

           61|       path = "/share/com.github.Aylur.ags/types";
           62|       pkg = cfg.package.override {
             |             ^
           63|         extraPackages = cfg.extraPackages;

This is a repro from my dotfiles.

@Aylur Aylur mentioned this issue Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant