NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.51k stars 13.68k forks source link

JRE meta.platforms missing on OS X #5634

Closed tel closed 9 years ago

tel commented 9 years ago

In particular, the yed package tries to reference jre.meta.platforms and thus fails.

nix-env -i gnutar --show-trace                                     [23:36:49]
error: while evaluating ‘callPackageWith’ at "/nix/store/c4clcbqv5qqnjx6hwd28m5jfkd7mz5ki-nixpkgs-15.05pre55083.597373b/nixpkgs/lib/customisation.nix":97:35, called from "/nix/store/c4clcbqv5qqnjx6hwd28m5jfkd7mz5ki-nixpkgs-15.05pre55083.597373b/nixpkgs/pkgs/top-level/all-packages.nix":11446:9:
while evaluating ‘makeOverridable’ at "/nix/store/c4clcbqv5qqnjx6hwd28m5jfkd7mz5ki-nixpkgs-15.05pre55083.597373b/nixpkgs/lib/customisation.nix":56:24, called from "/nix/store/c4clcbqv5qqnjx6hwd28m5jfkd7mz5ki-nixpkgs-15.05pre55083.597373b/nixpkgs/lib/customisation.nix":99:5:
while evaluating anonymous function at "/nix/store/c4clcbqv5qqnjx6hwd28m5jfkd7mz5ki-nixpkgs-15.05pre55083.597373b/nixpkgs/pkgs/applications/graphics/yed/default.nix":1:1, called from "/nix/store/c4clcbqv5qqnjx6hwd28m5jfkd7mz5ki-nixpkgs-15.05pre55083.597373b/nixpkgs/lib/customisation.nix":58:12:
while evaluating ‘mkDerivation’ at "/nix/store/c4clcbqv5qqnjx6hwd28m5jfkd7mz5ki-nixpkgs-15.05pre55083.597373b/nixpkgs/pkgs/stdenv/generic/default.nix":56:18, called from "/nix/store/c4clcbqv5qqnjx6hwd28m5jfkd7mz5ki-nixpkgs-15.05pre55083.597373b/nixpkgs/pkgs/applications/graphics/yed/default.nix":3:1:
while evaluating the attribute ‘meta.platforms’ at "/nix/store/c4clcbqv5qqnjx6hwd28m5jfkd7mz5ki-nixpkgs-15.05pre55083.597373b/nixpkgs/pkgs/applications/graphics/yed/default.nix":26:5:
while evaluating the attribute ‘meta.platforms’ at "/nix/store/c4clcbqv5qqnjx6hwd28m5jfkd7mz5ki-nixpkgs-15.05pre55083.597373b/nixpkgs/lib/meta.nix":17:14:
attribute ‘meta.platforms’ missing, at "/nix/store/c4clcbqv5qqnjx6hwd28m5jfkd7mz5ki-nixpkgs-15.05pre55083.597373b/nixpkgs/pkgs/applications/graphics/yed/default.nix":26:17
tel commented 9 years ago

This patch https://github.com/tel/nixpkgs/commit/6ce434178573d493a6c5290b74495daeb4eab9cc might fix it. I'm not sure of the right way to add the meta information.

henrytill commented 9 years ago

See https://github.com/copumpkin/nixpkgs/pull/23#discussion_r22768258