summary refs log tree commit diff
path: root/pkgs/development/libraries/libffcall/default.nix
blob: 0be604c6246108210aee2c6e3524305ce0f736e0 (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
30
31
32
33
34
35
36
37
38
a :  
let 
  fetchurl = a.fetchurl;

  version = a.lib.attrByPath ["version"] "2009-05-27" a; 
  buildInputs = with a; [
    
  ];
in
rec {
  src = a.fetchcvs {
    cvsRoot = ":pserver:anonymous@cvs.savannah.gnu.org:/sources/libffcall";
    module = "ffcall";
    date = version;
    sha256 = "91bcb5a20c85a9ccab45886aae8fdbbcf1f20f995ef898e8bdd2964448daf724";
  };

  inherit buildInputs;
  configureFlags = [];

  /* doConfigure should be removed if not needed */
  phaseNames = ["doConfigure" "doMakeInstall"];
      
  doConfigure = a.fullDepEntry (''
    for i in ./configure */configure; do
      cwd="$PWD"
      cd "$(dirname "$i")"; 
      ( test -f Makefile && make distclean ) || true
      ./configure --prefix=$out
      cd "$cwd"
    done
  '') a.doConfigure.deps;

  name = "libffcall-" + version;
  meta = {
    description = "Foreign function call library";
  };
}