Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: hdbc-postgresql CI

on:
push:
branches: main
pull_request:

permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: cachix/install-nix-action@v31
with:
github_access_token: ${{ secrets.GITHUB_TOKEN }}
nix_path: nixpkgs=channel:nixpkgs-unstable

- run: nix-channel --update
- name: Build using Nix
run: nix-build
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
*.swp
/dist/
dist
*~
dist-newstyle
/result
8 changes: 4 additions & 4 deletions HDBC-postgresql.cabal
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Name: HDBC-postgresql
Version: 2.5.0.1
Version: 2.5.0.2
License: BSD3
Maintainer: Nicolas Wu <nicolas.wu@gmail.com>
Maintainer: Nicolas Wu <nicolas.wu@gmail.com>, David Johnson <code@dmj.io>
Author: John Goerzen
Copyright: Copyright (c) 2005-2011 John Goerzen
license-file: LICENSE
Expand Down Expand Up @@ -45,7 +45,7 @@ Library
Build-Depends: base >= 3 && < 5, mtl, HDBC>=2.2.0, parsec, utf8-string,
bytestring, old-time, convertible
if flag(minTime15)
Build-Depends: time >= 1.5 && < 1.16
Build-Depends: time >= 1.5 && < 1.17
CPP-Options: -DMIN_TIME_15
else
Build-Depends: time < 1.5, old-locale
Expand All @@ -63,7 +63,7 @@ Executable runtests
convertible, parsec, utf8-string,
bytestring, old-time, base >= 4.6 && < 5.0, HDBC>=2.2.6
if flag(minTime15)
Build-Depends: time >= 1.5 && < 1.16
Build-Depends: time >= 1.5 && < 1.17
CPP-Options: -DMIN_TIME_15
else
Build-Depends: time < 1.5, old-locale
Expand Down
3 changes: 3 additions & 0 deletions default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{ pkgs ? import <nixpkgs> {} }:

pkgs.haskellPackages.callPackage ./hdbc-postgresql.nix { inherit (pkgs) postgresql; }
19 changes: 19 additions & 0 deletions hdbc-postgresql.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{ mkDerivation, base, bytestring, Cabal, convertible, HDBC, lib
, mtl, old-time, parsec, postgresql, time, utf8-string
}:
mkDerivation {
pname = "HDBC-postgresql";
version = "2.5.0.2";
src = ./.;
isLibrary = true;
isExecutable = true;
setupHaskellDepends = [ base Cabal ];
libraryHaskellDepends = [
base bytestring convertible HDBC mtl old-time parsec time
utf8-string
];
librarySystemDepends = [ postgresql (postgresql.pg_config) ];
homepage = "http://github.com/hdbc/hdbc-postgresql";
description = "PostgreSQL driver for HDBC";
license = lib.licenses.bsd3;
}
Loading