1x@{builderDefsPackage
2 , fetchgit
3 , autoconf, automake, libtool
4 , ...}:
5builderDefsPackage
6(a :
7let
8 helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
9 ["fetchgit"];
10
11 buildInputs = map (n: builtins.getAttr n x)
12 (builtins.attrNames (builtins.removeAttrs x helperArgNames));
13 sourceInfo = rec {
14 method="fetchgit";
15 baseName="libfixposix";
16 url="https://github.com/sionescu/libfixposix";
17 rev="30b75609d858588ea00b427015940351896867e9";
18 version="git-${rev}";
19 name="${baseName}-${version}";
20 hash="44553c90d67f839cdd57d14d37d9faa25b1b766f607408896137f3013c1c9424";
21 };
22in
23rec {
24 srcDrv = a.fetchgit {
25 url = sourceInfo.url;
26 rev = sourceInfo.rev;
27 sha256 = sourceInfo.hash;
28 };
29
30 src = srcDrv +"/";
31
32 inherit (sourceInfo) name version;
33 inherit buildInputs;
34
35 /* doConfigure should be removed if not needed */
36 phaseNames = ["doAutoreconf" "doConfigure" "doMakeInstall"];
37
38 doAutoreconf = a.fullDepEntry (''
39 autoreconf -i
40 '') ["doUnpack" "addInputs"];
41
42 meta = {
43 description = "A set of workarounds for places in POSIX that get implemented differently";
44 maintainers = with a.lib.maintainers;
45 [
46 raskin
47 ];
48 platforms = with a.lib.platforms;
49 linux;
50 };
51 passthru = {
52 updateInfo = {
53 downloadPage = "http://gitorious.org/libfixposix/libfixposix";
54 };
55 };
56}) x
57