{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/49781","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/49781/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/49781/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/49781/events","html_url":"https://github.com/NixOS/nixpkgs/issues/49781","id":377404353,"node_id":"MDU6SXNzdWUzNzc0MDQzNTM=","number":49781,"title":"cabal2nix broken on darwin","user":{"login":"MaxDaten","id":1087418,"node_id":"MDQ6VXNlcjEwODc0MTg=","avatar_url":"https://avatars1.githubusercontent.com/u/1087418?v=4","gravatar_id":"","url":"https://api.github.com/users/MaxDaten","html_url":"https://github.com/MaxDaten","followers_url":"https://api.github.com/users/MaxDaten/followers","following_url":"https://api.github.com/users/MaxDaten/following{/other_user}","gists_url":"https://api.github.com/users/MaxDaten/gists{/gist_id}","starred_url":"https://api.github.com/users/MaxDaten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaxDaten/subscriptions","organizations_url":"https://api.github.com/users/MaxDaten/orgs","repos_url":"https://api.github.com/users/MaxDaten/repos","events_url":"https://api.github.com/users/MaxDaten/events{/privacy}","received_events_url":"https://api.github.com/users/MaxDaten/received_events","type":"User","site_admin":false},"labels":[{"id":90308187,"node_id":"MDU6TGFiZWw5MDMwODE4Nw==","url":"https://api.github.com/repos/NixOS/nixpkgs/labels/6.topic:%20darwin","name":"6.topic: darwin","color":"fef2c0","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-11-03T21:52:17Z","updated_at":"2018-11-17T14:46:22Z","closed_at":"2018-11-06T19:15:28Z","author_association":"NONE","body":"I'm fairly new to nix, not sure if it the right place. I did a fresh install of nix via `curl https://nixos.org/nix/install | sh`.\r\n\r\nAnd then right after the (single-user) installation, I did `nix-env -i cabal2nix`, and it fails with: \r\n\r\n```\r\nIn file included from lib/osxcode.cpp:30:\r\n/nix/store/8v9xplbvxm2ddxv4nhbj21iryb4vmbjc-swift-corefoundation-private/Library/Frameworks/CoreFoundation.framework/Headers/CFBundlePriv.h:140:81: error: expected function body after function declarator\r\nCFBundleRef _CFBundleCreateUnique(CFAllocatorRef allocator, CFURLRef bundleURL) API_AVAILABLE(macos(10.11), ios(9.0), watchos(2.0), tvos(9.0));\r\n                                                                                ^\r\n/nix/store/8v9xplbvxm2ddxv4nhbj21iryb4vmbjc-swift-corefoundation-private/Library/Frameworks/CoreFoundation.framework/Headers/CFBundlePriv.h:146:84: error: expected function body after function declarator\r\nCFBundleRef _CFBundleCreateIfMightBeBundle(CFAllocatorRef allocator, CFURLRef url) API_DEPRECATED(\"Use CFBundleCreate instead\", macos(10.6,10.10), ios(2.0,8.0), watchos(2.0,2.0), tvos(9.0,9.0));\r\n                                                                                   ^\r\n/nix/store/8v9xplbvxm2ddxv4nhbj21iryb4vmbjc-swift-corefoundation-private/Library/Frameworks/CoreFoundation.framework/Headers/CFBundlePriv.h:156:59: error: expected function body after function declarator\r\nCFURLRef _CFBundleCopyResourceForkURL(CFBundleRef bundle) API_AVAILABLE(macos(10.0)) API_UNAVAILABLE(ios, watchos, tvos);\r\n                                                          ^\r\n/nix/store/8v9xplbvxm2ddxv4nhbj21iryb4vmbjc-swift-corefoundation-private/Library/Frameworks/CoreFoundation.framework/Headers/CFBundlePriv.h:194:175: error: expected function body after function declarator\r\nCF_EXPORT CFStringRef CFBundleCopyLocalizedStringForLocalization(CFBundleRef bundle, CFStringRef key, CFStringRef value, CFStringRef tableName, CFStringRef localizationName) API_AVAILABLE(macos(10.10), ios(8.0), watchos(2.0), tvos(9.0));\r\n                                                                                                                                                                              ^\r\n/nix/store/8v9xplbvxm2ddxv4nhbj21iryb4vmbjc-swift-corefoundation-private/Library/Frameworks/CoreFoundation.framework/Headers/CFBundlePriv.h:222:52: error: expected function body after function declarator\r\nBoolean _CFBundleGetHasChanged(CFBundleRef bundle) API_DEPRECATED(\"Function no longer supported\", macos(10.0,10.13), ios(2.0,11.0), watchos(2.0,4.0), tvos(9.0,11.0));\r\n                                                   ^\r\n/nix/store/8v9xplbvxm2ddxv4nhbj21iryb4vmbjc-swift-corefoundation-private/Library/Frameworks/CoreFoundation.framework/Headers/CFBundlePriv.h:225:33: error: expected function body after function declarator\r\nvoid _CFBundleFlushCaches(void) API_DEPRECATED(\"Function no longer supported\", macos(10.0,10.8), ios(2.0,6.0), watchos(2.0,2.0), tvos(9.0,9.0));\r\n                                ^\r\n/nix/store/8v9xplbvxm2ddxv4nhbj21iryb4vmbjc-swift-corefoundation-private/Library/Frameworks/CoreFoundation.framework/Headers/CFBundlePriv.h:228:47: error: expected function body after function declarator\r\nvoid _CFBundleFlushCachesForURL(CFURLRef url) API_DEPRECATED(\"Function no longer supported\", macos(10.0,10.8), ios(2.0,6.0), watchos(2.0,2.0), tvos(9.0,9.0));\r\n                                              ^\r\n/nix/store/8v9xplbvxm2ddxv4nhbj21iryb4vmbjc-swift-corefoundation-private/Library/Frameworks/CoreFoundation.framework/Headers/CFBundlePriv.h:255:59: error: expected function body after function declarator\r\nCFStringRef _CFDoubledStringCreate(CFStringRef theString) API_AVAILABLE(macosx(10.13), ios(11.0), watchos(4.0), tvos(11.0));\r\n                                                          ^\r\n/nix/store/8v9xplbvxm2ddxv4nhbj21iryb4vmbjc-swift-corefoundation-private/Library/Frameworks/CoreFoundation.framework/Headers/CFBundlePriv.h:258:63: error: expected function body after function declarator\r\nCFStringRef _CFAccentuatedStringCreate(CFStringRef theString) API_AVAILABLE(macosx(10.13), ios(11.0), watchos(4.0), tvos(11.0));\r\n                                                              ^\r\n/nix/store/8v9xplbvxm2ddxv4nhbj21iryb4vmbjc-swift-corefoundation-private/Library/Frameworks/CoreFoundation.framework/Headers/CFBundlePriv.h:261:99: error: expected function body after function declarator\r\nCFStringRef _CFAffixedStringCreate(CFStringRef theString, CFStringRef prefix, CFStringRef suffix) API_AVAILABLE(macosx(10.13), ios(11.0), watchos(4.0), tvos(11.0));\r\n                                                                                                  ^\r\n/nix/store/8v9xplbvxm2ddxv4nhbj21iryb4vmbjc-swift-corefoundation-private/Library/Frameworks/CoreFoundation.framework/Headers/CFBundlePriv.h:264:66: error: expected function body after function declarator\r\nCFStringRef _CFRLORightToLeftStringCreate(CFStringRef theString) API_AVAILABLE(macosx(10.13), ios(11.0), watchos(4.0), tvos(11.0));\r\n                                                                 ^\r\n17 warnings and 11 errors generated.\r\nmake[3]: *** [/nix/store/204lvxmsigkgkdv2c0fvkqalxmg4fik5-gnustep-make-2.7.0/share/GNUstep/Makefiles/rules.make:499: obj/security_utilities.obj/lib/osxcode.cpp.o] Error 1\r\nmake[2]: *** [/nix/store/204lvxmsigkgkdv2c0fvkqalxmg4fik5-gnustep-make-2.7.0/share/GNUstep/Makefiles/Instance/library.make:278: internal-library-all_] Error 2\r\nmake[1]: *** [/nix/store/204lvxmsigkgkdv2c0fvkqalxmg4fik5-gnustep-make-2.7.0/share/GNUstep/Makefiles/Master/rules.make:297: security_utilities.all.library.variables] Error 2\r\nmake: *** [/nix/store/204lvxmsigkgkdv2c0fvkqalxmg4fik5-gnustep-make-2.7.0/share/GNUstep/Makefiles/Master/library.make:37: internal-all] Error 2\r\nbuilder for '/nix/store/xxja1zlr9xqvl4vij85lcf30h5s6yyi5-libsecurity_utilities-osx-10.7.5.drv' failed with exit code 2\r\ncannot build derivation '/nix/store/g2i0xac4g4173561i5lsgn7pncswzmqd-SecurityTool-55115.drv': 1 dependencies couldn't be built\r\ncannot build derivation '/nix/store/wp5jxbn1gma862cfdkdzcpnncxj487dz-x509-system-1.6.6.drv': 1 dependencies couldn't be built\r\ncannot build derivation '/nix/store/8ziwh0sxqmvnw8xzd3ibmqpi1sr2xsh2-connection-0.2.8.drv': 1 dependencies couldn't be built\r\ncannot build derivation '/nix/store/kfs315qrnbmd3qhbldl3fp03qg9mniwn-http-client-tls-0.3.5.3.drv': 1 dependencies couldn't be built\r\ncannot build derivation '/nix/store/zwfk2676pj2bz6d3m70a44z3x03sq3zs-hpack-0.31.0.drv': 1 dependencies couldn't be built\r\ncannot build derivation '/nix/store/gk3vkmc038m1mcfc2rgrbp4nki6dgh2v-cabal2nix-2.11.1.drv': 1 dependencies couldn't be built\r\nerror: build of '/nix/store/gk3vkmc038m1mcfc2rgrbp4nki6dgh2v-cabal2nix-2.11.1.drv' failed\r\n```\r\n\r\nAny ideas how to solve this?"},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/439622400","html_url":"https://github.com/NixOS/nixpkgs/issues/49781#issuecomment-439622400","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/49781","id":439622400,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTYyMjQwMA==","user":{"login":"LnL7","id":689294,"node_id":"MDQ6VXNlcjY4OTI5NA==","avatar_url":"https://avatars2.githubusercontent.com/u/689294?v=4","gravatar_id":"","url":"https://api.github.com/users/LnL7","html_url":"https://github.com/LnL7","followers_url":"https://api.github.com/users/LnL7/followers","following_url":"https://api.github.com/users/LnL7/following{/other_user}","gists_url":"https://api.github.com/users/LnL7/gists{/gist_id}","starred_url":"https://api.github.com/users/LnL7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LnL7/subscriptions","organizations_url":"https://api.github.com/users/LnL7/orgs","repos_url":"https://api.github.com/users/LnL7/repos","events_url":"https://api.github.com/users/LnL7/events{/privacy}","received_events_url":"https://api.github.com/users/LnL7/received_events","type":"User","site_admin":false},"created_at":"2018-11-17T14:46:22Z","updated_at":"2018-11-17T14:46:22Z","author_association":"CONTRIBUTOR","body":"@MaxDaten The output of nix-channel --list isn't complete. But if you named the channel nixpkgs-unstable you then have to use that as the prefix.\r\n\r\n```sh\r\n$ nix-env -iA nixpkgs-unstable.cabal2nix\r\n```\r\n\r\nAnd with this you can query the current version of channels on your system.\r\n\r\n```sh\r\n$ nix-env -p ~/.nix-defexpr/channels -q\r\nnixpkgs-unstable-19.03pre159144.0249f7d48af\r\n$ nix-env -p /nix/var/nix/profiles/per-user/root/channels -q  # only for multi-user\r\nnixos-18.09.1228.a4c4cbb613c\r\n```"}}
{"actor":{"display_login":"LnL7"}}