2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
baseName = "altermime";
|
|
|
|
name = "${baseName}-${version}";
|
|
|
|
version = "0.3.11";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://pldaniels.com/${baseName}/${name}.tar.gz";
|
|
|
|
sha256 = "15zxg6spcmd35r6xbidq2fgcg2nzyv1sbbqds08lzll70mqx4pj7";
|
|
|
|
};
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = toString [
|
|
|
|
"-Wno-error=format"
|
|
|
|
"-Wno-error=format-truncation"
|
|
|
|
"-Wno-error=pointer-compare"
|
|
|
|
"-Wno-error=memset-elt-size"
|
|
|
|
"-Wno-error=restrict"
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i Makefile -e "s@/usr/local@$out@"
|
|
|
|
mkdir -p "$out/bin"
|
|
|
|
'';
|
|
|
|
|
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 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license.fullName = "alterMIME LICENSE";
|
|
|
|
downloadPage = "https://pldaniels.com/altermime/";
|
|
|
|
};
|
|
|
|
}
|