2010-10-21 13:28:14 +01: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="altermime";
|
|
|
|
version="0.3.10";
|
|
|
|
name="${baseName}-${version}";
|
|
|
|
url="http://www.pldaniels.com/${baseName}/${name}.tar.gz";
|
|
|
|
hash="0vn3vmbcimv0n14khxr1782m76983zz9sf4j2kz5v86lammxld43";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = a.fetchurl {
|
|
|
|
url = sourceInfo.url;
|
|
|
|
sha256 = sourceInfo.hash;
|
|
|
|
};
|
|
|
|
|
|
|
|
inherit (sourceInfo) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
|
2012-04-05 16:31:10 +01:00
|
|
|
patches = map a.fetchurl (import ./debian-patches.nix);
|
2011-09-26 05:48:35 +01:00
|
|
|
|
|
|
|
phaseNames = ["doPatch" "fixTarget" "doMakeInstall"];
|
2010-10-21 13:28:14 +01:00
|
|
|
fixTarget = a.fullDepEntry (''
|
|
|
|
sed -i Makefile -e "s@/usr/local@$out@"
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p "$out/bin"
|
2010-10-21 13:28:14 +01:00
|
|
|
'') ["doUnpack" "minInit" "defEnsureDir"];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "MIME alteration tool";
|
|
|
|
maintainers = with a.lib.maintainers;
|
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms;
|
|
|
|
linux;
|
2014-07-01 09:47:15 +01:00
|
|
|
downloadPage = "http://www.pldaniels.com/altermime/";
|
|
|
|
inherit version;
|
|
|
|
updateWalker = true;
|
2010-10-21 13:28:14 +01:00
|
|
|
};
|
|
|
|
}) x
|
|
|
|
|