2015-04-03 12:02:10 +02:00
|
|
|
{ stdenv, fetchurl }:
|
2010-10-18 11:43:17 +02:00
|
|
|
|
2015-04-03 12:02:10 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "ripmime";
|
|
|
|
version = "1.4.0.10";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.pldaniels.com/${pname}/${name}.tar.gz";
|
|
|
|
sha256 = "0sj06ibmlzy34n8v0mnlq2gwidy7n2aqcwgjh0xssz3vi941aqc9";
|
2010-10-18 11:43:17 +02:00
|
|
|
};
|
|
|
|
|
2015-04-03 12:02:10 +02:00
|
|
|
preInstall = ''
|
2015-10-15 22:21:42 +02: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 12:02:10 +02:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2010-10-18 11:43:17 +02:00
|
|
|
description = "Attachment extractor for MIME messages";
|
2015-04-03 12:02:10 +02:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
|
|
homepage = http://www.pldaniels.com/ripmime/;
|
2015-11-25 23:04:57 +01:00
|
|
|
platforms = platforms.linux;
|
2010-10-18 11:43:17 +02:00
|
|
|
};
|
2015-04-03 12:02:10 +02:00
|
|
|
|
2010-10-18 11:43:17 +02:00
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://www.pldaniels.com/ripmime/";
|
|
|
|
};
|
|
|
|
};
|
2015-04-03 12:02:10 +02:00
|
|
|
}
|