Skip to content

haskellPackages.postgrest broken #271868

@SFrijters

Description

@SFrijters

Steps To Reproduce

$ nix-build -A haskellPackages.postgrest

Additional context

The package refuses to evaluate because configurator-pg-0.2.7 is marked as broken; after fixing that a number of other issues occur.
I managed to get it to work locally by applying the following nixpkgs overlay (mostly changing package versions) - but I don't know how to make a proper PR for the Haskell package set that fixes all these issues in the correct way. Maybe some kind maintainer can help me out?

I have also tried with the latest haskell-updates branch but that does not resolve the issues.

(final: prev: {
  haskellPackages = prev.haskellPackages.override {
    overrides = let
      inherit (pkgs.haskell.lib.compose)
        doJailbreak
        markUnbroken
        overrideSrc
        overrideCabal
        addBuildDepends
      ;
    in
      self: super: {
        configurator-pg = pkgs.lib.pipe super.configurator-pg [
          markUnbroken
          doJailbreak
        ];
        fuzzyset = pkgs.lib.pipe super.fuzzyset [
          markUnbroken
          (overrideCabal (drv: {
            version = "0.2.4";
            sha256 = "sha256-tsOPShYkKxCccIwKj1aL4rURgXWN4N8HJyV5Jn5pRmY=";
            revision = "0";
            editedCabalFile = "sha256-8bbei/Myd79iVSB1QdZQKPHx6pOvVUG2VMhrVnSZVIU=";
          }))
          (addBuildDepends [
            self.data-default
          ])
        ];
        hasql-pool = pkgs.lib.pipe super.hasql-pool [
          (overrideCabal (drv: {
            version = "0.10";
            sha256 = "sha256-EeyKo3NPIpBLv6e7DVQYMus3soGtMC/IzKVg6qBWBZY=";
            revision = "0";
            editedCabalFile = "sha256-kSGXoyisuFUF+Yu5cA1h82a4dlnKRRJsXC1jZoe4AcM=";
          }))
        ];
        postgrest = pkgs.lib.pipe super.postgrest [
          (overrideSrc {
            version = "11.2.2";
            src = pkgs.fetchFromGitHub {
              owner = "PostgREST";
              repo = "postgrest";
              rev = "v11.2.2";
              hash = "sha256-6Nv0NSAiNUSg2T/cmWs7zGSInLSmF0WDA3E/KxlA7O8=";
            };
          })
          (addBuildDepends [
            self.extra self.fuzzyset self.cache self.timeit
          ])
        ];
      };
  };
})

Notify maintainers

@cdepillabout @sternenseemann

Metadata

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

 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.2, NixOS, 24.05 (Uakari), 24.05.20231123.79245fc`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - channels(frijters): `""`
 - channels(root): `""`
 - nixpkgs: `/etc/nixpkgs`

Add a 👍 reaction to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: build failureA package fails to build6.topic: haskellGeneral-purpose, statically typed, purely functional programming language
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions