2021-03-08 16:14:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, libiconv }:
|
2010-10-18 10:43:17 +01:00
|
|
|
|
2015-04-03 11:02:10 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ripmime";
|
|
|
|
version = "1.4.0.10";
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "http://www.pldaniels.com/${pname}/${pname}-${version}.tar.gz";
|
2015-04-03 11:02:10 +01:00
|
|
|
sha256 = "0sj06ibmlzy34n8v0mnlq2gwidy7n2aqcwgjh0xssz3vi941aqc9";
|
2010-10-18 10:43:17 +01:00
|
|
|
};
|
|
|
|
|
2021-03-08 16:14:33 +00:00
|
|
|
buildInputs = [ libiconv ];
|
2015-04-03 11:02:10 +01:00
|
|
|
preInstall = ''
|
2015-10-15 21:21:42 +01:00
|
|
|
sed -i Makefile -e "s@LOCATION=.*@LOCATION=$out@" -e "s@man/man1@share/&@"
|
|
|
|
mkdir -p "$out/bin" "$out/share/man/man1"
|
2015-04-03 11:02:10 +01:00
|
|
|
'';
|
|
|
|
|
2018-02-25 18:18:58 +00:00
|
|
|
NIX_CFLAGS_COMPILE=" -Wno-error ";
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2010-10-18 10:43:17 +01:00
|
|
|
description = "Attachment extractor for MIME messages";
|
2015-04-03 11:02:10 +01:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://www.pldaniels.com/ripmime/";
|
2021-03-08 16:14:33 +00:00
|
|
|
platforms = platforms.all;
|
2010-10-18 10:43:17 +01:00
|
|
|
};
|
2015-04-03 11:02:10 +01:00
|
|
|
|
2010-10-18 10:43:17 +01:00
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://www.pldaniels.com/ripmime/";
|
|
|
|
};
|
|
|
|
};
|
2015-04-03 11:02:10 +01:00
|
|
|
}
|