forked from mirrors/nixpkgs
Add libfixposix
svn path=/nixpkgs/trunk/; revision=24462
This commit is contained in:
parent
84f61bc6d5
commit
ec500ae264
57
pkgs/development/libraries/libfixposix/default.nix
Normal file
57
pkgs/development/libraries/libfixposix/default.nix
Normal 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
|
||||
|
|
@ -3254,6 +3254,8 @@ let
|
|||
libmpeg2 = mpeg2dec;
|
||||
};
|
||||
|
||||
libfixposix = callPackage ../development/libraries/libfixposix {};
|
||||
|
||||
libffcall = builderDefsPackage (import ../development/libraries/libffcall) {
|
||||
inherit fetchcvs;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue