2010-10-18 09:43:17 +00:00
|
|
|
x@{builderDefsPackage
|
|
|
|
|
|
|
|
, ...}:
|
|
|
|
builderDefsPackage
|
|
|
|
(a :
|
|
|
|
let
|
|
|
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
|
|
[];
|
|
|
|
|
|
|
|
buildInputs = map (n: builtins.getAttr n x)
|
|
|
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
|
|
|
sourceInfo = rec {
|
|
|
|
baseName="ripmime";
|
2012-03-30 05:30:09 +00:00
|
|
|
version="1.4.0.10";
|
2010-10-18 09:43:17 +00:00
|
|
|
name="${baseName}-${version}";
|
|
|
|
url="http://www.pldaniels.com/${baseName}/${name}.tar.gz";
|
2012-03-30 05:30:09 +00:00
|
|
|
hash="0sj06ibmlzy34n8v0mnlq2gwidy7n2aqcwgjh0xssz3vi941aqc9";
|
2010-10-18 09:43:17 +00:00
|
|
|
};
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = a.fetchurl {
|
|
|
|
url = sourceInfo.url;
|
|
|
|
sha256 = sourceInfo.hash;
|
|
|
|
};
|
|
|
|
|
|
|
|
inherit (sourceInfo) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
|
|
|
|
/* doConfigure should be removed if not needed */
|
|
|
|
phaseNames = ["fixTarget" "doMakeInstall"];
|
|
|
|
fixTarget = a.fullDepEntry (''
|
|
|
|
sed -i Makefile -e "s@LOCATION=.*@LOCATION=$out@"
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p "$out/bin" "$out/man/man1"
|
2010-10-18 09:43:17 +00:00
|
|
|
'') ["doUnpack" "minInit" "defEnsureDir"];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Attachment extractor for MIME messages";
|
|
|
|
maintainers = with a.lib.maintainers;
|
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms;
|
|
|
|
linux;
|
|
|
|
};
|
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://www.pldaniels.com/ripmime/";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}) x
|
|
|
|
|