nixpkgs/pkgs/tools/networking/altermime/default.nix

34 lines
823 B
Nix
Raw Normal View History

2016-01-26 03:47:06 +01:00
{ stdenv, fetchurl }:
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";
2016-01-26 03:47:06 +01:00
src = fetchurl {
2018-08-21 19:38:26 +02:00
url = "https://pldaniels.com/${baseName}/${name}.tar.gz";
2017-08-01 11:51:30 +02:00
sha256 = "15zxg6spcmd35r6xbidq2fgcg2nzyv1sbbqds08lzll70mqx4pj7";
2016-01-26 03:47:06 +01:00
};
2019-10-30 01:40:49 +01:00
NIX_CFLAGS_COMPILE = toString [
"-Wno-error=format"
2018-03-19 22:59:59 +01:00
"-Wno-error=format-truncation"
"-Wno-error=pointer-compare"
"-Wno-error=memset-elt-size"
2019-01-11 10:28:08 +01:00
"-Wno-error=restrict"
2018-03-19 22:59:59 +01:00
];
2016-01-26 03:47:06 +01:00
postPatch = ''
sed -i Makefile -e "s@/usr/local@$out@"
mkdir -p "$out/bin"
2016-01-26 03:47:06 +01:00
'';
2018-08-14 13:33:05 +02:00
meta = with stdenv.lib; {
description = "MIME alteration tool";
2018-08-14 13:33:05 +02:00
maintainers = [ maintainers.raskin ];
platforms = platforms.linux;
license.fullName = "alterMIME LICENSE";
2018-08-21 19:38:26 +02:00
downloadPage = "https://pldaniels.com/altermime/";
};
2016-01-26 03:47:06 +01:00
}