3
0
Fork 0
forked from mirrors/nixpkgs

Add libfixposix

svn path=/nixpkgs/trunk/; revision=24462
This commit is contained in:
Michael Raskin 2010-10-25 05:52:13 +00:00
parent 84f61bc6d5
commit ec500ae264
2 changed files with 59 additions and 0 deletions

View file

@ -0,0 +1,57 @@
x@{builderDefsPackage
, fetchgit
, autoconf, automake, libtool
, ...}:
builderDefsPackage
(a :
let
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
["fetchgit"];
buildInputs = map (n: builtins.getAttr n x)
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
sourceInfo = rec {
method="fetchgit";
baseName="libfixposix";
url="git://gitorious.org/${baseName}/${baseName}";
rev="30b75609d858588ea00b427015940351896867e9";
version="git-${rev}";
name="${baseName}-${version}";
hash="bfbb6a80c0137035421af86d1261d5e12810f15e4a683ee9a714bfb5d397579f";
};
in
rec {
srcDrv = a.fetchgit {
url = sourceInfo.url;
rev = sourceInfo.rev;
sha256 = sourceInfo.hash;
};
src = srcDrv +"/";
inherit (sourceInfo) name version;
inherit buildInputs;
/* doConfigure should be removed if not needed */
phaseNames = ["doAutoreconf" "doConfigure" "doMakeInstall"];
doAutoreconf = a.fullDepEntry (''
autoreconf -i
'') ["doUnpack" "addInputs"];
meta = {
description = "A set of workarounds for places in POSIX that get implemented differently";
maintainers = with a.lib.maintainers;
[
raskin
];
platforms = with a.lib.platforms;
linux;
};
passthru = {
updateInfo = {
downloadPage = "http://gitorious.org/libfixposix/libfixposix";
};
};
}) x

View file

@ -3254,6 +3254,8 @@ let
libmpeg2 = mpeg2dec;
};
libfixposix = callPackage ../development/libraries/libfixposix {};
libffcall = builderDefsPackage (import ../development/libraries/libffcall) {
inherit fetchcvs;
};