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

buildPerlPackage not working #103

Open
poperigby opened this issue Jun 7, 2024 · 0 comments
Open

buildPerlPackage not working #103

poperigby opened this issue Jun 7, 2024 · 0 comments

Comments

@poperigby
Copy link

I'm trying to build this package...

{
    buildPerlPackage,
    ...
}:

buildPerlPackage {
    pname = "indent-changer";
    version = "0.1.0";
    src = ./indent-changer.pl;
}

...but it's failing with this error:

error:
       … while evaluating a branch condition
         at /nix/store/84m9nfg7kamv5va1fkk2iszbn5q2mavh-source/flake.nix:43:15:
           42|             (name: value:
           43|               if isAttrs value then lhs.${name} or { } // value
             |               ^
           44|               else if isList value then lhs.${name} or [ ] ++ value

       … while calling the 'isAttrs' builtin
         at /nix/store/84m9nfg7kamv5va1fkk2iszbn5q2mavh-source/flake.nix:43:18:
           42|             (name: value:
           43|               if isAttrs value then lhs.${name} or { } // value
             |                  ^
           44|               else if isList value then lhs.${name} or [ ] ++ value

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

       error: attribute 'buildPerlPackage' missing
       at /nix/store/j54hy8ncy0mjxvcq7axmwss4ngpdzhyk-packages/indent-changer/default.nix:6:1:
            5|
            6| pkgs.buildPerlPackage {
             | ^
            7|     pname = "indent-changer";

This is my directory structure:

.
└── packages
    └── indent-changer
        ├── default.nix
        └── indent-changer.pl
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