mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
libfixposix: reimplement using mkDerivation
This commit is contained in:
parent
a2ccc80774
commit
f4c9d2f64e
1 changed files with 14 additions and 43 deletions
|
@ -1,57 +1,28 @@
|
||||||
x@{builderDefsPackage
|
{ stdenv, fetchurl, fetchgit, autoreconfHook, libtool }:
|
||||||
, fetchgit
|
|
||||||
, autoconf, automake, libtool
|
|
||||||
, ...}:
|
|
||||||
builderDefsPackage
|
|
||||||
(a :
|
|
||||||
let
|
|
||||||
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
||||||
["fetchgit"];
|
|
||||||
|
|
||||||
buildInputs = map (n: builtins.getAttr n x)
|
stdenv.mkDerivation rec {
|
||||||
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
name="libfixposix-${version}";
|
||||||
sourceInfo = rec {
|
version="git-${src.rev}";
|
||||||
method="fetchgit";
|
|
||||||
baseName="libfixposix";
|
src = fetchgit {
|
||||||
url="https://github.com/sionescu/libfixposix";
|
url = "https://github.com/sionescu/libfixposix";
|
||||||
rev="30b75609d858588ea00b427015940351896867e9";
|
rev = "30b75609d858588ea00b427015940351896867e9";
|
||||||
version="git-${rev}";
|
sha256 = "44553c90d67f839cdd57d14d37d9faa25b1b766f607408896137f3013c1c9424";
|
||||||
name="${baseName}-${version}";
|
|
||||||
hash="44553c90d67f839cdd57d14d37d9faa25b1b766f607408896137f3013c1c9424";
|
|
||||||
};
|
|
||||||
in
|
|
||||||
rec {
|
|
||||||
srcDrv = a.fetchgit {
|
|
||||||
url = sourceInfo.url;
|
|
||||||
rev = sourceInfo.rev;
|
|
||||||
sha256 = sourceInfo.hash;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
src = srcDrv +"/";
|
buildInputs = [ autoreconfHook libtool ];
|
||||||
|
|
||||||
inherit (sourceInfo) name version;
|
meta = with stdenv.lib; {
|
||||||
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";
|
description = "A set of workarounds for places in POSIX that get implemented differently";
|
||||||
maintainers = with a.lib.maintainers;
|
maintainers = with maintainers;
|
||||||
[
|
[
|
||||||
raskin
|
raskin
|
||||||
];
|
];
|
||||||
platforms = with a.lib.platforms;
|
platforms = platforms.linux;
|
||||||
linux;
|
|
||||||
};
|
};
|
||||||
passthru = {
|
passthru = {
|
||||||
updateInfo = {
|
updateInfo = {
|
||||||
downloadPage = "http://gitorious.org/libfixposix/libfixposix";
|
downloadPage = "http://gitorious.org/libfixposix/libfixposix";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}) x
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue