2021-03-12 07:09:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, libiconv }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ripmime";
|
|
|
|
version = "1.4.0.10";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.pldaniels.com/${pname}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "0sj06ibmlzy34n8v0mnlq2gwidy7n2aqcwgjh0xssz3vi941aqc9";
|
|
|
|
};
|
|
|
|
|
2021-03-12 07:09:13 +00:00
|
|
|
buildInputs = [ libiconv ];
|
2020-04-24 23:36:52 +00:00
|
|
|
preInstall = ''
|
|
|
|
sed -i Makefile -e "s@LOCATION=.*@LOCATION=$out@" -e "s@man/man1@share/&@"
|
|
|
|
mkdir -p "$out/bin" "$out/share/man/man1"
|
|
|
|
'';
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE=" -Wno-error ";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Attachment extractor for MIME messages";
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
homepage = "http://www.pldaniels.com/ripmime/";
|
2021-03-12 07:09:13 +00:00
|
|
|
platforms = platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://www.pldaniels.com/ripmime/";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|