{"action":"created","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/1477","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1477/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1477/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1477/events","html_url":"https://github.com/commercialhaskell/stack/issues/1477","id":120830740,"number":1477,"title":"Problem with stack upgrade","user":{"login":"FranklinChen","id":134491,"avatar_url":"https://avatars.githubusercontent.com/u/134491?v=3","gravatar_id":"","url":"https://api.github.com/users/FranklinChen","html_url":"https://github.com/FranklinChen","followers_url":"https://api.github.com/users/FranklinChen/followers","following_url":"https://api.github.com/users/FranklinChen/following{/other_user}","gists_url":"https://api.github.com/users/FranklinChen/gists{/gist_id}","starred_url":"https://api.github.com/users/FranklinChen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FranklinChen/subscriptions","organizations_url":"https://api.github.com/users/FranklinChen/orgs","repos_url":"https://api.github.com/users/FranklinChen/repos","events_url":"https://api.github.com/users/FranklinChen/events{/privacy}","received_events_url":"https://api.github.com/users/FranklinChen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-07T17:52:46Z","updated_at":"2015-12-07T19:25:10Z","closed_at":null,"body":"I am using an ancient Mac OS X laptop where the Stack dependency `cryptonite` requires me to pass a custom flag to Cabal https://github.com/haskell-crypto/cryptonite/issues/21 but I don't know how to pass this flag to `stack upgrade`. (Note that this laptop is sufficiently old that I cannot just download and use the prebuilt binary for Stack for more modern OS X, but have to build Stack from source.)  Without the flag, I cannot do `stack upgrade`.\r\n\r\nHow do I hook in the config into `stack upgrade`?\r\n\r\n```\r\n  cryptonite:\r\n    support_aesni: false\r\n```"},"comment":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/comments/162632035","html_url":"https://github.com/commercialhaskell/stack/issues/1477#issuecomment-162632035","issue_url":"https://api.github.com/repos/commercialhaskell/stack/issues/1477","id":162632035,"user":{"login":"luigy","id":817138,"avatar_url":"https://avatars.githubusercontent.com/u/817138?v=3","gravatar_id":"","url":"https://api.github.com/users/luigy","html_url":"https://github.com/luigy","followers_url":"https://api.github.com/users/luigy/followers","following_url":"https://api.github.com/users/luigy/following{/other_user}","gists_url":"https://api.github.com/users/luigy/gists{/gist_id}","starred_url":"https://api.github.com/users/luigy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luigy/subscriptions","organizations_url":"https://api.github.com/users/luigy/orgs","repos_url":"https://api.github.com/users/luigy/repos","events_url":"https://api.github.com/users/luigy/events{/privacy}","received_events_url":"https://api.github.com/users/luigy/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T19:25:10Z","updated_at":"2015-12-07T19:25:10Z","body":"hmm I don't think there is support for that but I always build my `stack` executable from repo clone and another alternative would also be to use `stack unpack`:\r\n```sh\r\nstack unpack stack-0.1.10.0\r\ncd stack-0.1.10.0\r\n# make your modifications to stack.yaml\r\nstack install\r\n```\r\nyou wouldn't have to use package version to it have always download latest (ala stack upgrade) but currenlty stack would pick up deprecated versions #1391 \r\n"}}