about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/pure-modules/odbc/default.nix
blob: 272c88a697cd4d1dba84f3ae4a0e21072e9ce4ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ lib, stdenv, fetchurl, pkg-config, pure, libiodbc }:

stdenv.mkDerivation rec {
  baseName = "odbc";
  version = "0.10";
  name = "pure-${baseName}-${version}";

  src = fetchurl {
    url = "https://bitbucket.org/purelang/pure-lang/downloads/${name}.tar.gz";
    sha256 = "1907e9ebca11cc68762cf7046084b31e9e2bf056df85c40ccbcbe9f02221ff8d";
  };

  nativeBuildInputs = [ pkg-config ];
  propagatedBuildInputs = [ pure libiodbc ];
  makeFlags = [ "libdir=$(out)/lib" "prefix=$(out)/" ];
  setupHook = ../generic-setup-hook.sh;

  meta = {
    description = "A simple ODBC interface for the Pure programming language";
    homepage = "http://puredocs.bitbucket.org/pure-odbc.html";
    license = lib.licenses.lgpl3Plus;
    platforms = lib.platforms.linux;
    maintainers = with lib.maintainers; [ asppsa ];
  };
}