Skip to content

Nix build is broken (2019/11/20) #22

Description

@szg251

I use postgresql-typed in one of my projects. When used with stack, it works perfectly, but when I tried to migrate to nix, it seems to be broken. The package itself is marked as broken in the nixpkgs. If I ignore the warning, I get the following error message:

test/Main.hs:1:1: error:
    Exception when trying to run compile-time code:
      Network.Socket.connect: <socket: 12>: does not exist (No such file or directory)
    Code: template-haskell-2.14.0.0:Language.Haskell.TH.Quote.quoteDec
            pgSQL "!CREATE TYPE myenum AS enum ('abc', 'DEF', 'XX_ye')"
  |
1 | {-# LANGUAGE OverloadedStrings, FlexibleInstances, MultiParamTypeClasses, DataKinds, DeriveDataTypeable, TypeFamilies, PatternGuards, StandaloneDeriving #-}
  | ^

builder for '/nix/store/ghbmalyqp9511ps05f6c7mvx5d6wwpnk-postgresql-typed-0.6.1.0.drv' failed with exit code 1

My guess is that, some post build scripts need a running postgres server.

Nixpkgs rev: 58fb23f72ad916c8bbfa3c3bc2d0c83c9cfcdd16

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions