Skip to content

nix-env -i haskell-haskell-platform-ghc7.6.1-2012.2.0.0 # assertion failed #56

Closed

Description

@skull-squadron
[root@freebsd ~]# nix-env -i haskell-haskell-platform-ghc7.6.1-2012.2.0.0
installing `haskell-haskell-platform-ghc7.6.1-2012.2.0.0'
error: assertion failed at `/nix/store/rcwjawql0ck2nbrnpkqgrgxjm2k42z3q-nixpkgs-1.0pre21403_def0189/nixpkgs/pkgs/development/compilers/ghc/7.0.4-binary.nix:7:1'
(use `--show-trace' to show detailed location information)
[root@freebsd ~]# nix-env -i haskell-haskell-platform-ghc7.6.1-2012.2.0.0 --show-trace
installing `haskell-haskell-platform-ghc7.6.1-2012.2.0.0'
error: while evaluating the builtin function `derivationStrict':
while instantiating the derivation named `haskell-haskell-platform-ghc7.6.1-2012.2.0.0' at `/nix/store/rcwjawql0ck2nbrnpkqgrgxjm2k42z3q-nixpkgs-1.0pre21403_def0189/nixpkgs/pkgs/build-support/cabal/default.nix:36:13':
while evaluating the derivation attribute `buildNativeInputs' at `/nix/store/rcwjawql0ck2nbrnpkqgrgxjm2k42z3q-nixpkgs-1.0pre21403_def0189/nixpkgs/pkgs/stdenv/generic/default.nix:67:15':
while evaluating the builtin function `getAttr':
while evaluating the builtin function `derivationStrict':
while instantiating the derivation named `ghc-7.6.1-wrapper' at `/nix/store/rcwjawql0ck2nbrnpkqgrgxjm2k42z3q-nixpkgs-1.0pre21403_def0189/nixpkgs/pkgs/development/compilers/ghc/wrapper.nix:8:3':
while evaluating the derivation attribute `propagatedBuildNativeInputs' at `/nix/store/rcwjawql0ck2nbrnpkqgrgxjm2k42z3q-nixpkgs-1.0pre21403_def0189/nixpkgs/pkgs/stdenv/generic/default.nix:69:15':
while evaluating the builtin function `getAttr':
while evaluating the builtin function `derivationStrict':
while instantiating the derivation named `ghc-7.6.1' at `/nix/store/rcwjawql0ck2nbrnpkqgrgxjm2k42z3q-nixpkgs-1.0pre21403_def0189/nixpkgs/pkgs/development/compilers/ghc/7.6.1.nix:6:3':
while evaluating the derivation attribute `buildNativeInputs' at `/nix/store/rcwjawql0ck2nbrnpkqgrgxjm2k42z3q-nixpkgs-1.0pre21403_def0189/nixpkgs/pkgs/stdenv/generic/default.nix:67:15':
while evaluating the function at `/nix/store/rcwjawql0ck2nbrnpkqgrgxjm2k42z3q-nixpkgs-1.0pre21403_def0189/nixpkgs/pkgs/lib/meta.nix:41:13':
while evaluating the function at `/nix/store/rcwjawql0ck2nbrnpkqgrgxjm2k42z3q-nixpkgs-1.0pre21403_def0189/nixpkgs/pkgs/lib/meta.nix:13:28':
while evaluating the function at `/nix/store/rcwjawql0ck2nbrnpkqgrgxjm2k42z3q-nixpkgs-1.0pre21403_def0189/nixpkgs/pkgs/lib/customisation.nix:98:35':
while evaluating the function at `/nix/store/rcwjawql0ck2nbrnpkqgrgxjm2k42z3q-nixpkgs-1.0pre21403_def0189/nixpkgs/pkgs/lib/customisation.nix:59:24':
while evaluating the builtin function `isAttrs':
while evaluating the function at `/nix/store/rcwjawql0ck2nbrnpkqgrgxjm2k42z3q-nixpkgs-1.0pre21403_def0189/nixpkgs/pkgs/development/compilers/ghc/7.0.4-binary.nix:1:1':
assertion failed at `/nix/store/rcwjawql0ck2nbrnpkqgrgxjm2k42z3q-nixpkgs-1.0pre21403_def0189/nixpkgs/pkgs/development/compilers/ghc/7.0.4-binary.nix:7:1'

Activity

  1. skull-squadron commented on Sep 25, 2012

    @skull-squadron
    Author
    let
      supportedPlatforms = ["x86_64-linux" "i686-linux" "i686-darwin" "x86_64-darwin"];
    in
    
    assert stdenv.lib.elem stdenv.system supportedPlatforms;
    
  2. skull-squadron commented on Sep 25, 2012

    @skull-squadron
    Author

    What is obvious to you or I would not be obvious to an end-user.

  3. peti commented on Sep 25, 2012

    @peti
    Member

    @steakknife, what do you suggest we do?

  4. skull-squadron commented on Sep 25, 2012

    @skull-squadron
    Author

    Is there syntax semantics to decorate an assertion with a failure message?

  5. peti commented on Sep 25, 2012

    @peti
    Member

    There is 'throw', which does supply an error message. It's my understanding, though, that assert and throw differ in their laziness, i.e. it is in general not possible to replace assert with throw and to expect the same outcome. I'm not sure whether that would cause problems in our particular use case. @kosmikus should know?

  6. kosmikus commented on Sep 25, 2012

    @kosmikus
    Member

    I have no idea. We'd have to try.

  7. edolstra commented on Sep 25, 2012

    @edolstra
    Member

    "throw" behaves in the same way as "assert" except for the error message. You may be thinking of "abort", which cannot be caught by tryEval.

  8. peti commented on Sep 30, 2012

    @peti
    Member

    Unfortunately, throw cannot easily replace assert in ghc-7.4.2-binary.nix and friends. At least I don't see how without changing the structure of that expression quite a bit. Am I missing something?

    What is the point of that assertion anyway? Isn't the throw statement in the srcattribute good enough?

  9. kosmikus commented on Oct 4, 2012

    @kosmikus
    Member

    I think the throw is good enough.

  10. peti commented on Oct 12, 2012

    @peti
    Member

    Commit b1169e5 removes the call to assert. I guess that change fixes this issue?

  11. edolstra commented on Feb 26, 2014

    @edolstra
    Member

    Closing, appears to be fixed (and in any case not a Nix issue).

  12. added a commit that references this issue on Aug 28, 2020
  13. added a commit that references this issue on Jan 1, 2024
  14. added a commit that references this issue on Feb 26, 2025
    e70d734
  15. added a commit that references this issue on Mar 5, 2025
  16. added a commit that references this issue on Jul 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions