brew-nix icon indicating copy to clipboard operation
brew-nix copied to clipboard

How do i handle @ in package names?

Open PatNei opened this issue 6 months ago • 2 comments

I was wondering on what the strategy is for handling packages with an @ in the name like https://formulae.brew.sh/cask/firefox@developer-edition ? I tried parsing as a string but it seems that this breaks the flake.

error:
       … while calling the 'derivationStrict' builtin

         at /derivation-internal.nix:9:12:

            8|
            9|   strict = derivationStrict drvAttrs;
             |            ^
           10|

       … while evaluating derivation 'darwin-system-24.11.20240804.f3834de+darwin4.f7142b8'
         whose name attribute is located at /nix/store/f5ykynf933aab7nd1arqz6dm79hdh91q-source/pkgs/stdenv/generic/make-derivation.nix:334:7

       … while evaluating attribute 'activationScript' of derivation 'darwin-system-24.11.20240804.f3834de+darwin4.f7142b8'

         at /nix/store/gja289s0jhbrz7kgypdq8p4x0pin5axg-source/modules/system/default.nix:95:7:

           94|
           95|       activationScript = cfg.activationScripts.script.text;
             |       ^
           96|       activationUserScript = cfg.activationScripts.userScript.text;

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

       error: A definition for option `environment.systemPackages."[definition 10-entry 7]"' is not of type `package'. Definition values:
       - In `/nix/store/awlw9r6cby3g0sw2y33981f4vdvzpxy1-source/brew-apps.nix': "firefox@developer-edition"

Best regards

PatNei avatar Aug 11 '24 14:08 PatNei