about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/networking/ripmime/default.nix
blob: 6584edca5e6893510a38bb0e5d63dd102489e1c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ lib, stdenv, fetchurl, libiconv }:

stdenv.mkDerivation rec {
  pname = "ripmime";
  version = "1.4.0.10";
  src = fetchurl {
    url = "http://www.pldaniels.com/${pname}/${pname}-${version}.tar.gz";
    sha256 = "0sj06ibmlzy34n8v0mnlq2gwidy7n2aqcwgjh0xssz3vi941aqc9";
  };

  buildInputs = [ libiconv ];
  preInstall = ''
    sed -i Makefile -e "s@LOCATION=.*@LOCATION=$out@" -e "s@man/man1@share/&@"
    mkdir -p "$out/bin" "$out/share/man/man1"
  '';

  env.NIX_CFLAGS_COMPILE = " -Wno-error ";

  meta = with lib; {
    description = "Attachment extractor for MIME messages";
    maintainers = with maintainers; [ raskin ];
    homepage = "http://www.pldaniels.com/ripmime/";
    platforms = platforms.all;
  };

  passthru = {
    updateInfo = {
      downloadPage = "http://www.pldaniels.com/ripmime/";
    };
  };
}