Created
December 15, 2017 16:29
-
-
Save mitchty/21e8edd8d1a2c730499637e9ff0c38ca to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error: while evaluating ‘callPackageWith’ at /Users/mitch/src/github.com/NixOS/nixpkgs/lib/customisation.nix:113:35, called from /Users/mitch/src/github.com/NixOS/nixpkgs/pkgs/top-level/all-packages.nix:17789:24: | |
while evaluating ‘makeOverridable’ at /Users/mitch/src/github.com/NixOS/nixpkgs/lib/customisation.nix:72:24, called from /Users/mitch/src/github.com/NixOS/nixpkgs/lib/customisation.nix:117:8: | |
while evaluating anonymous function at /Users/mitch/src/github.com/NixOS/nixpkgs/pkgs/games/2048-in-terminal/default.nix:1:1, called from /Users/mitch/src/github.com/NixOS/nixpkgs/lib/customisation.nix:74:12: | |
while evaluating ‘mkDerivation’ at /Users/mitch/src/github.com/NixOS/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:15:5, called from /Users/mitch/src/github.com/NixOS/nixpkgs/pkgs/games/2048-in-terminal/default.nix:3:1: | |
while evaluating ‘addPassthru’ at /Users/mitch/src/github.com/NixOS/nixpkgs/lib/customisation.nix:135:22, called from /Users/mitch/src/github.com/NixOS/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:166:7: | |
while evaluating anonymous function at /Users/mitch/src/github.com/NixOS/nixpkgs/pkgs/stdenv/generic/check-meta.nix:5:1, called from /Users/mitch/src/github.com/NixOS/nixpkgs/pkgs/stdenv/generic/make-derivation.nix:167:22: | |
while evaluating ‘handleEvalIssue’ at /Users/mitch/src/github.com/NixOS/nixpkgs/pkgs/stdenv/generic/check-meta.nix:128:21, called from /Users/mitch/src/github.com/NixOS/nixpkgs/pkgs/stdenv/generic/check-meta.nix:203:17: | |
Package ‘2048-in-terminal-2015-01-15’ in /Users/mitch/src/github.com/NixOS/nixpkgs/pkgs/games/2048-in-terminal/default.nix:25 is not supported on ‘x86_64-darwin’, refusing to evaluate. | |
a) For `nixos-rebuild` you can set | |
{ nixpkgs.config.allowBroken = true; } | |
in configuration.nix to override this. | |
b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add | |
{ allowBroken = true; } | |
to ~/.config/nixpkgs/config.nix. | |
So I do b, and then: | |
error: Please be informed that this pseudo-package is not the only part of | |
Nixpkgs that fails to evaluate. You should not evaluate entire Nixpkgs | |
without some special measures to handle failing packages, like those taken | |
by Hydra. |
with import <nixpkgs> {};
stdenv.mkDerivation rec {
name = "notworking";
env = buildEnv { name= name; paths = buildInputs;};
buildInputs = [
libxml2
munge
entr
python36Full
python36Packages.flask
python36Packages.requests
python36Packages.gunicorn
python36Packages.pyyaml
python36Packages.mock
python36Packages.unittest2
python36Packages.coverage
python36Packages.pip
];
shellHook = "export LIBMUNGE=${munge}/lib/libmunge.dylib";
}
# with import <nixpkgs> {}; {
# pyEnv = stdenv.mkDerivation {
# name = "junk";
# buildInputs = [
# stdenv
# libxml2
# munge
# python27Full
# python27Packages.virtualenv
# python27Packages.flask
# python27Packages.requests
# python27Packages.gunicorn
# python27Packages.pyyaml
# python27Packages.mock
# python27Packages.jsonschema
# python27Packages.unittest2
# python27Packages.coverage
# python27Packages.pip
# ];
# shellHook = "export LIBMUNGE=${munge}/lib/libmunge.dylib";
# };
# }
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
default.nix in question: