2016-01-26 03:47:06 +01:00
|
|
|
{ stdenv, fetchurl }:
|
2010-10-21 14:28:14 +02:00
|
|
|
|
2016-01-26 03:47:06 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
baseName = "altermime";
|
|
|
|
name = "${baseName}-${version}";
|
2017-08-01 11:51:30 +02:00
|
|
|
version = "0.3.11";
|
2010-10-21 14:28:14 +02:00
|
|
|
|
2016-01-26 03:47:06 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.pldaniels.com/${baseName}/${name}.tar.gz";
|
2017-08-01 11:51:30 +02:00
|
|
|
sha256 = "15zxg6spcmd35r6xbidq2fgcg2nzyv1sbbqds08lzll70mqx4pj7";
|
2016-01-26 03:47:06 +01:00
|
|
|
};
|
2010-10-21 14:28:14 +02:00
|
|
|
|
2017-08-01 11:51:30 +02:00
|
|
|
NIX_CFLAGS_COMPILE = "-Wno-error=format";
|
2011-09-26 06:48:35 +02:00
|
|
|
|
2016-01-26 03:47:06 +01:00
|
|
|
postPatch = ''
|
2010-10-21 14:28:14 +02:00
|
|
|
sed -i Makefile -e "s@/usr/local@$out@"
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p "$out/bin"
|
2016-01-26 03:47:06 +01:00
|
|
|
'';
|
|
|
|
|
2010-10-21 14:28:14 +02:00
|
|
|
meta = {
|
|
|
|
description = "MIME alteration tool";
|
2016-01-26 03:47:06 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [
|
2010-10-21 14:28:14 +02:00
|
|
|
raskin
|
|
|
|
];
|
2016-01-26 03:47:06 +01:00
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2014-07-01 10:47:15 +02:00
|
|
|
downloadPage = "http://www.pldaniels.com/altermime/";
|
2010-10-21 14:28:14 +02:00
|
|
|
};
|
2016-01-26 03:47:06 +01:00
|
|
|
}
|