2021-03-18 15:26:03 +00:00
|
|
|
{ lib, gccStdenv, fetchurl }:
|
2010-10-21 12:28:14 +00:00
|
|
|
|
2021-03-18 15:26:03 +00:00
|
|
|
gccStdenv.mkDerivation rec {
|
|
|
|
pname = "altermime";
|
2017-08-01 09:51:30 +00:00
|
|
|
version = "0.3.11";
|
2010-10-21 12:28:14 +00:00
|
|
|
|
2016-01-26 02:47:06 +00:00
|
|
|
src = fetchurl {
|
2021-03-18 15:26:03 +00:00
|
|
|
url = "https://pldaniels.com/${pname}/${pname}-${version}.tar.gz";
|
2017-08-01 09:51:30 +00:00
|
|
|
sha256 = "15zxg6spcmd35r6xbidq2fgcg2nzyv1sbbqds08lzll70mqx4pj7";
|
2016-01-26 02:47:06 +00:00
|
|
|
};
|
2010-10-21 12:28:14 +00:00
|
|
|
|
2023-02-19 19:23:32 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = toString [
|
2019-10-30 00:40:49 +00:00
|
|
|
"-Wno-error=format"
|
2018-03-19 21:59:59 +00:00
|
|
|
"-Wno-error=format-truncation"
|
|
|
|
"-Wno-error=pointer-compare"
|
|
|
|
"-Wno-error=memset-elt-size"
|
2019-01-11 09:28:08 +00:00
|
|
|
"-Wno-error=restrict"
|
2018-03-19 21:59:59 +00:00
|
|
|
];
|
2011-09-26 04:48:35 +00:00
|
|
|
|
2016-01-26 02:47:06 +00:00
|
|
|
postPatch = ''
|
2021-03-18 15:26:03 +00:00
|
|
|
mkdir -p $out/bin
|
|
|
|
substituteInPlace Makefile --replace "/usr/local" "$out"
|
2016-01-26 02:47:06 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2010-10-21 12:28:14 +00:00
|
|
|
description = "MIME alteration tool";
|
2018-08-14 11:33:05 +00:00
|
|
|
maintainers = [ maintainers.raskin ];
|
2021-03-18 15:26:03 +00:00
|
|
|
platforms = platforms.all;
|
2018-08-14 11:33:05 +00:00
|
|
|
license.fullName = "alterMIME LICENSE";
|
2018-08-21 17:38:26 +00:00
|
|
|
downloadPage = "https://pldaniels.com/altermime/";
|
2010-10-21 12:28:14 +00:00
|
|
|
};
|
2016-01-26 02:47:06 +00:00
|
|
|
}
|