{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/6192","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/6192/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/6192/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/6192/events","html_url":"https://github.com/NixOS/nixpkgs/issues/6192","id":56770377,"number":6192,"title":"overrideScope on haskell-ng packages only passes in Haskell package arguments","user":{"login":"joelteon","id":316117,"avatar_url":"https://avatars.githubusercontent.com/u/316117?v=3","gravatar_id":"","url":"https://api.github.com/users/joelteon","html_url":"https://github.com/joelteon","followers_url":"https://api.github.com/users/joelteon/followers","following_url":"https://api.github.com/users/joelteon/following{/other_user}","gists_url":"https://api.github.com/users/joelteon/gists{/gist_id}","starred_url":"https://api.github.com/users/joelteon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joelteon/subscriptions","organizations_url":"https://api.github.com/users/joelteon/orgs","repos_url":"https://api.github.com/users/joelteon/repos","events_url":"https://api.github.com/users/joelteon/events{/privacy}","received_events_url":"https://api.github.com/users/joelteon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/haskell","name":"haskell","color":"5319e7"},{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-06T04:56:32Z","updated_at":"2015-02-08T12:24:28Z","closed_at":null,"body":"If a Haskell package expression accepts anything that isn't a Haskell package in its argument list, it won't be passed in:\r\n\r\n```\r\nerror: while evaluating anonymous function at /Users/joelteon/.dev/Haskell/webapp2/shell.nix:1:1, called from undefined position:\r\nwhile evaluating the attribute ‘build.\"${ghc}\".\"${(builtins).currentSystem}\"’ at /Users/joelteon/.dev/nixpkgs-dev/lib/attrsets.nix:135:44:\r\nwhile evaluating anonymous function at /Users/joelteon/.dev/Haskell/webapp2/shell.nix:10:27, called from /Users/joelteon/.dev/nixpkgs-dev/lib/attrsets.nix:135:52:\r\nwhile evaluating ‘overrideDerivation’ at /Users/joelteon/.dev/nixpkgs-dev/lib/customisation.nix:34:29, called from /Users/joelteon/.dev/Haskell/webapp2/shell.nix:25:10:\r\nwhile evaluating ‘addPassthru’ at /Users/joelteon/.dev/nixpkgs-dev/lib/customisation.nix:109:22, called from /Users/joelteon/.dev/nixpkgs-dev/lib/customisation.nix:37:8:\r\nwhile evaluating ‘overrideScope’ at /Users/joelteon/.dev/nixpkgs-dev/pkgs/development/haskell-modules/default.nix:46:25, called from /Users/joelteon/.dev/Haskell/webapp2/shell.nix:13:20:\r\nwhile evaluating ‘callPackageWithScope’ at /Users/joelteon/.dev/nixpkgs-dev/pkgs/development/haskell-modules/default.nix:45:42, called from /Users/joelteon/.dev/nixpkgs-dev/pkgs/development/haskell-modules/default.nix:46:28:\r\nwhile evaluating ‘callPackageWith’ at /Users/joelteon/.dev/nixpkgs-dev/lib/customisation.nix:104:35, called from /Users/joelteon/.dev/nixpkgs-dev/pkgs/development/haskell-modules/default.nix:45:49:\r\nwhile evaluating ‘makeOverridable’ at /Users/joelteon/.dev/nixpkgs-dev/lib/customisation.nix:56:24, called from /Users/joelteon/.dev/nixpkgs-dev/lib/customisation.nix:106:5:\r\nanonymous function at /Users/joelteon/.dev/Haskell/webapp2/default.nix:3:1 called without required argument ‘stdenv’, at /Users/joelteon/.dev/nixpkgs-dev/lib/customisation.nix:58:12\r\n```\r\n\r\nWith `default.nix` starting with this:\r\n\r\n``` nix\r\n{ mkDerivation, aeson, asn1-types, attoparsec, base, blaze-builder\r\n, blaze-html, bytestring, conduit, data-default, directory\r\n, esqueleto, fast-logger, file-embed, filepath, highlighter, hjsmin\r\n, hspec, http-conduit, http-types, lens, lifted-base, markdown\r\n, monad-control, monad-logger, MonadRandom, network, network-uri\r\n, old-locale, path-pieces, pcre-light, persistent\r\n, persistent-postgresql, persistent-template, process-extras\r\n, resourcet, shakespeare, stdenv, system-filepath, template-haskell\r\n, text, thyme, transformers, wai, wai-extra, wai-logger, warp, yaml\r\n, yesod, yesod-auth, yesod-core, yesod-form, yesod-newsfeed\r\n, yesod-pagination, yesod-static, yesod-test\r\n}:\r\n```\r\n\r\nand using:\r\n\r\n``` nix\r\nlet pkg = pkg_.overrideScope (self: super: {\r\n  mkDerivation = expr: super.mkDerivation (expr // {\r\n    enableLibraryProfiling = true;\r\n  });\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/73408677","html_url":"https://github.com/NixOS/nixpkgs/issues/6192#issuecomment-73408677","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/6192","id":73408677,"user":{"login":"peti","id":28323,"avatar_url":"https://avatars.githubusercontent.com/u/28323?v=3","gravatar_id":"","url":"https://api.github.com/users/peti","html_url":"https://github.com/peti","followers_url":"https://api.github.com/users/peti/followers","following_url":"https://api.github.com/users/peti/following{/other_user}","gists_url":"https://api.github.com/users/peti/gists{/gist_id}","starred_url":"https://api.github.com/users/peti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peti/subscriptions","organizations_url":"https://api.github.com/users/peti/orgs","repos_url":"https://api.github.com/users/peti/repos","events_url":"https://api.github.com/users/peti/events{/privacy}","received_events_url":"https://api.github.com/users/peti/received_events","type":"User","site_admin":false},"created_at":"2015-02-08T12:24:28Z","updated_at":"2015-02-08T12:24:28Z","body":"No, I guess not. I'll commit a fix."}}