{"action":"opened","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/14752","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/14752/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/14752/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/14752/events","html_url":"https://github.com/NixOS/nixpkgs/issues/14752","id":148785378,"number":14752,"title":"haskellpackages.HDBC-mysql fails to build on 16.03","user":{"login":"ryantm","id":4804,"avatar_url":"https://avatars.githubusercontent.com/u/4804?v=3","gravatar_id":"","url":"https://api.github.com/users/ryantm","html_url":"https://github.com/ryantm","followers_url":"https://api.github.com/users/ryantm/followers","following_url":"https://api.github.com/users/ryantm/following{/other_user}","gists_url":"https://api.github.com/users/ryantm/gists{/gist_id}","starred_url":"https://api.github.com/users/ryantm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ryantm/subscriptions","organizations_url":"https://api.github.com/users/ryantm/orgs","repos_url":"https://api.github.com/users/ryantm/repos","events_url":"https://api.github.com/users/ryantm/events{/privacy}","received_events_url":"https://api.github.com/users/ryantm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-15T22:38:42Z","updated_at":"2016-04-15T22:38:42Z","closed_at":null,"body":"## Issue description\r\n\r\nHDBC-mysql haskell package doesn't build. This setup code has had problems in the past:\r\n\r\n* https://github.com/bos/hdbc-mysql/pull/11\r\n* https://github.com/hdbc/hdbc-postgresql/pull/32\r\n\r\n### Steps to reproduce\r\n\r\n```\r\nnix-shell -I https://nixos.org/releases/nixos/16.03/nixos-16.03.581.e409886/nixexprs.tar.xz \\\r\n  -p \"haskellPackages.ghcWithPackages (pkgs: with pkgs; [ HDBC-mysql])\"\r\nthese derivations will be built:\r\n  /nix/store/vcfrx1w5sk6gri41a5glclzzyzzajl2n-HDBC-mysql-0.6.6.1.drv\r\n  /nix/store/nfzafj8nac1rfir6xhc4pg40x0hirya3-ghc-7.10.3.drv\r\nbuilding path(s) ‘/nix/store/qwj17p3f9zmnnsq94k2gilfw44fqp35w-HDBC-mysql-0.6.6.1’\r\nsetupCompilerEnvironmentPhase\r\nBuild with /nix/store/zzagkgsmb66gxng1819fyqrz7n08l7j4-ghc-7.10.3.\r\nunpacking sources\r\nunpacking source archive /nix/store/bg8d9bmskhnb1ydar3mxnkv9amfr28va-HDBC-mysql-0.6.6.1.tar.gz\r\nsource root is HDBC-mysql-0.6.6.1\r\nsetting SOURCE_DATE_EPOCH to timestamp 1346298003 of file HDBC-mysql-0.6.6.1/Setup.lhs\r\npatching sources\r\ncompileBuildDriverPhase\r\nsetupCompileFlags: -package-db=/tmp/nix-build-HDBC-mysql-0.6.6.1.drv-0/package.conf.d -j4 -threaded\r\n[1 of 1] Compiling Main             ( Setup.lhs, /tmp/nix-build-HDBC-mysql-0.6.6.1.drv-0/Main.o )\r\n\r\nSetup.lhs:30:7:\r\n    Couldn't match type ‘IO (Maybe FilePath)’\r\n                   with ‘ProgramSearchPath -> IO (Maybe FilePath)’\r\n    Expected type: IO (Maybe FilePath)\r\n                   -> (Maybe FilePath -> IO (Maybe FilePath))\r\n                   -> ProgramSearchPath\r\n                   -> IO (Maybe FilePath)\r\n      Actual type: IO (Maybe FilePath)\r\n                   -> (Maybe FilePath -> IO (Maybe FilePath)) -> IO (Maybe FilePath)\r\n    In a stmt of a 'do' block:\r\n      mysql_config <- findProgramOnPath \"mysql_config\" verbosity\r\n    In the expression:\r\n      do { mysql_config <- findProgramOnPath \"mysql_config\" verbosity;\r\n           mysql_config5 <- findProgramOnPath \"mysql_config5\" verbosity;\r\n           return (mysql_config `mplus` mysql_config5) }\r\n    In the ‘programFindLocation’ field of a record\r\nbuilder for ‘/nix/store/vcfrx1w5sk6gri41a5glclzzyzzajl2n-HDBC-mysql-0.6.6.1.drv’ failed with exit code 1\r\ncannot build derivation ‘/nix/store/nfzafj8nac1rfir6xhc4pg40x0hirya3-ghc-7.10.3.drv’: 1 dependencies couldn't be built\r\nerror: build of ‘/nix/store/nfzafj8nac1rfir6xhc4pg40x0hirya3-ghc-7.10.3.drv’ failed\r\n/home/ryantm/.nix-profile/bin/nix-shell: failed to build all dependencies\r\n```\r\n\r\n\r\n## Technical details\r\n\r\n* System: (NixOS: `nixos-version`, Ubuntu/Fedora: `lsb_release -a`, ...)\r\n```\r\n$ lsb_release -a\r\nNo LSB modules are available.\r\nDistributor ID:\tUbuntu\r\nDescription:\tUbuntu 14.04.4 LTS\r\nRelease:\t14.04\r\nCodename:\ttrusty\r\nryantm@ryantm-dev-1404 ~/p/pololu/s2\r\n```\r\n* Nix version: (run `nix-env --version`)\r\n```\r\n$ nix-env --version\r\nnix-env (Nix) 1.10\r\n```\r\n* Nixpkgs version: (run `nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion`)\r\nspecified directly in nix-shell command\r\n"}}