mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 23:24:35 +00:00
526f6f63c7
svn path=/nixpkgs/trunk/; revision=15806
39 lines
881 B
Nix
39 lines
881 B
Nix
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 fuction call library";
|
|
};
|
|
}
|