NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.94k stars 13.96k forks source link

Build failure: haskellPackages.postgrest on `aarch64-darwin` #347885

Open shivaraj-bh opened 1 week ago

shivaraj-bh commented 1 week ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. build haskellPackages.postgrest

Build log

src/PostgREST/Version.hs:12:1: error: [-Wdeprecations, Werror=deprecations]
    Module ‘Paths_postgrest’:
      "The following functions have been omitted by a nixpkgs-specific patch to Cabal: getLibDir, getDynLibDir, getDataDir, getLibexecDir, getSysconfDir"
   |
12 | import Paths_postgrest    (version)
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

src/PostgREST/Version.hs:22:23: error: [GHC-63394] [-Wdeprecations, Werror=deprecations]
    In the use of ‘version’ (imported from Paths_postgrest):
    "The following functions have been omitted by a nixpkgs-specific patch to Cabal: getLibDir, getDynLibDir, getDataDir, getLibexecDir, getSysconfDir"
   |
22 |   toUtf8 (showVersion version) <> preRelease <> gitRev
   |                       ^^^^^^^

src/PostgREST/Version.hs:38:83: error: [GHC-63394] [-Wdeprecations, Werror=deprecations]
    In the use of ‘version’ (imported from Paths_postgrest):
    "The following functions have been omitted by a nixpkgs-specific patch to Cabal: getLibDir, getDynLibDir, getDataDir, getLibexecDir, getSysconfDir"
   |
38 |   | otherwise    =  "v" <> (T.intercalate "." . map show . take 2 $ versionBranch version)
   |                                                                                   ^^^^^^^

src/PostgREST/Version.hs:44:25: error: [GHC-63394] [-Wdeprecations, Werror=deprecations]
    In the use of ‘version’ (imported from Paths_postgrest):
    "The following functions have been omitted by a nixpkgs-specific patch to Cabal: getLibDir, getDynLibDir, getDataDir, getLibexecDir, getSysconfDir"
   |
44 |   length (versionBranch version) == 4

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
- system: `"aarch64-darwin"`
 - host os: `Darwin 23.6.0, macOS 14.6.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.18.2`
 - nixpkgs: `/nix/store/556di2dgvcsxf0n14hcf616r5ydvv2rj-source`

Add a :+1: reaction to issues you find important.

shivaraj-bh commented 1 day ago

I think when https://github.com/PostgREST/postgrest/commit/c045b261c4f7d2c2514e858120950be6b3ddfba8 lands in release this should be fixed?

I checked that the above commit is not part of the latest release (12.2.3), but it is in the devel release tag. I am hoping it will land in the next release.

dbaynard commented 1 day ago

@wolfgangwalther Is the removal of Paths_ modules from postgrest on the roadmap for the next postgrest release?