ToyVo / nh_darwin

Yet another nix cli helper
European Union Public License 1.2
23 stars 5 forks source link

IconConvTools only avalible on linux #23

Closed Eveeifyeve closed 18 hours ago

Eveeifyeve commented 1 day ago

NH_darwin requires iconConvTools which isn't on darwin

error:
       … while calling the 'derivationStrict' builtin

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

       … while evaluating derivation 'darwin-system-24.11.20241110.aebe249+darwin4.6c71c49'
         whose name attribute is located at /nix/store/bbdy3rh57z41in83s2g0vl8gp7y603ia-source/pkgs/stdenv/generic/make-derivation.nix:336:7

       … while evaluating attribute 'activationScript' of derivation 'darwin-system-24.11.20241110.aebe249+darwin4.6c71c49'

         at /nix/store/fxgkrsyv9h8k5wk3dm7ya91n3m7dn8mb-source/modules/system/default.nix:97:7:

           96|
           97|       activationScript = cfg.activationScripts.script.text;
             |       ^
           98|       activationUserScript = cfg.activationScripts.userScript.text;

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

       error: Package ‘icon-conv-tools-0.0.0’ in /nix/store/bbdy3rh57z41in83s2g0vl8gp7y603ia-source/pkgs/by-name/ic/iconConvTools/package.nix:28 is not available on the requested hostPlatform:
         hostPlatform.config = "aarch64-apple-darwin"
         package.meta.platforms = [
           "aarch64-linux"
           "armv5tel-linux"
           "armv6l-linux"
           "armv7a-linux"
           "armv7l-linux"
           "i686-linux"
           "loongarch64-linux"
           "m68k-linux"
           "microblaze-linux"
           "microblazeel-linux"
           "mips-linux"
           "mips64-linux"
           "mips64el-linux"
           "mipsel-linux"
           "powerpc64-linux"
           "powerpc64le-linux"
           "riscv32-linux"
           "riscv64-linux"
           "s390-linux"
           "s390x-linux"
           "x86_64-linux"
         ]
         package.meta.badPlatforms = [ ]
       , refusing to evaluate.

       a) To temporarily allow packages that are unsupported for this system, you can use an environment variable
          for a single invocation of the nix tools.

            $ export NIXPKGS_ALLOW_UNSUPPORTED_SYSTEM=1

          Note: When using `nix shell`, `nix build`, `nix develop`, etc with a flake,
                then pass `--impure` in order to allow use of environment variables.

       b) For `nixos-rebuild` you can set
         { nixpkgs.config.allowUnsupportedSystem = true; }
       in configuration.nix to override this.

       c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
         { allowUnsupportedSystem = true; }
       to ~/.config/nixpkgs/config.nix.
Eveeifyeve commented 18 hours ago

It turned out to be another package.