summary refs log tree commit diff
path: root/pkgs/development/libraries/kerberos/heimdal.nix
blob: 72adb808aa150b777bef6263198a17e43585b884 (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
26
27
28
29
{ stdenv, fetchurl, openldap, readline, db4, openssl, cyrus_sasl, sqlite} :

stdenv.mkDerivation rec {
  name = "heimdal-1.3.3";

  src = fetchurl {
    urls = [
      "http://www.h5l.org/dist/src/${name}.tar.gz"
      "http://ftp.pdc.kth.se/pub/heimdal/src/${name}.tar.gz"
    ];
    sha256 = "0c465by1g7niy3nkfs5mwrm6j6w2cvrf4988h3lpmj194lkjp3cc";
  };

  patches = [ ./no-md2.patch ];
  
  ## ugly, X should be made an option
  configureFlags = [
    "--with-openldap=${openldap}"
    "--with-sqlite3=${sqlite}"
    "--without-x"
  ];
  # dont succeed with --libexec=$out/sbin, so
  postInstall = ''
    mv $out/libexec/* $out/sbin/
    rmdir $out/libexec
  '';

  propagatedBuildInputs = [ readline db4 openssl openldap cyrus_sasl sqlite];
}