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}";
|
2017-08-01 10:51:30 +01:00
|
|
|
version = "0.3.11";
|
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";
|
2017-08-01 10:51:30 +01:00
|
|
|
sha256 = "15zxg6spcmd35r6xbidq2fgcg2nzyv1sbbqds08lzll70mqx4pj7";
|
2016-01-26 02:47:06 +00:00
|
|
|
};
|
2010-10-21 13:28:14 +01:00
|
|
|
|
2018-03-19 21:59:59 +00:00
|
|
|
NIX_CFLAGS_COMPILE = [ "-Wno-error=format"
|
|
|
|
"-Wno-error=format-truncation"
|
|
|
|
"-Wno-error=pointer-compare"
|
|
|
|
"-Wno-error=memset-elt-size"
|
|
|
|
];
|
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
|
|
|
'';
|
|
|
|
|
2018-08-14 12:33:05 +01:00
|
|
|
meta = with stdenv.lib; {
|
2010-10-21 13:28:14 +01:00
|
|
|
description = "MIME alteration tool";
|
2018-08-14 12:33:05 +01:00
|
|
|
maintainers = [ maintainers.raskin ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license.fullName = "alterMIME LICENSE";
|
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
|
|
|
}
|