2016-01-26 02:47:06 +00:00
|
|
|
{ stdenv, fetchurl }:
|
2010-10-21 13:28:14 +01:00
|
|
|
|
2016-01-26 02:47:06 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
baseName = "altermime";
|
|
|
|
name = "${baseName}-${version}";
|
|
|
|
version = "0.3.10";
|
2010-10-21 13:28:14 +01:00
|
|
|
|
2016-01-26 02:47:06 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.pldaniels.com/${baseName}/${name}.tar.gz";
|
|
|
|
sha256 = "0vn3vmbcimv0n14khxr1782m76983zz9sf4j2kz5v86lammxld43";
|
|
|
|
};
|
2010-10-21 13:28:14 +01:00
|
|
|
|
2016-01-26 02:47:06 +00:00
|
|
|
patches = map fetchurl (import ./debian-patches.nix);
|
2011-09-26 05:48:35 +01:00
|
|
|
|
2016-01-26 02:47:06 +00:00
|
|
|
postPatch = ''
|
2010-10-21 13:28:14 +01:00
|
|
|
sed -i Makefile -e "s@/usr/local@$out@"
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p "$out/bin"
|
2016-01-26 02:47:06 +00:00
|
|
|
'';
|
|
|
|
|
2010-10-21 13:28:14 +01:00
|
|
|
meta = {
|
|
|
|
description = "MIME alteration tool";
|
2016-01-26 02:47:06 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [
|
2010-10-21 13:28:14 +01:00
|
|
|
raskin
|
|
|
|
];
|
2016-01-26 02:47:06 +00:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2014-07-01 09:47:15 +01:00
|
|
|
downloadPage = "http://www.pldaniels.com/altermime/";
|
2010-10-21 13:28:14 +01:00
|
|
|
};
|
2016-01-26 02:47:06 +00:00
|
|
|
}
|