2021-03-19 17:17:44 +00:00
|
|
|
{ lib, gccStdenv, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-03-19 17:17:44 +00:00
|
|
|
gccStdenv.mkDerivation rec {
|
|
|
|
pname = "altermime";
|
2020-04-24 23:36:52 +00:00
|
|
|
version = "0.3.11";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-03-19 17:17:44 +00:00
|
|
|
url = "https://pldaniels.com/${pname}/${pname}-${version}.tar.gz";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "15zxg6spcmd35r6xbidq2fgcg2nzyv1sbbqds08lzll70mqx4pj7";
|
|
|
|
};
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = toString [
|
2020-04-24 23:36:52 +00:00
|
|
|
"-Wno-error=format"
|
|
|
|
"-Wno-error=format-truncation"
|
|
|
|
"-Wno-error=pointer-compare"
|
|
|
|
"-Wno-error=memset-elt-size"
|
|
|
|
"-Wno-error=restrict"
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
2021-03-19 17:17:44 +00:00
|
|
|
mkdir -p $out/bin
|
|
|
|
substituteInPlace Makefile --replace "/usr/local" "$out"
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "MIME alteration tool";
|
|
|
|
maintainers = [ maintainers.raskin ];
|
2021-03-19 17:17:44 +00:00
|
|
|
platforms = platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
license.fullName = "alterMIME LICENSE";
|
|
|
|
downloadPage = "https://pldaniels.com/altermime/";
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "altermime";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|