1 { lib, stdenv, fetchurl, libiconv }:
3 stdenv.mkDerivation rec {
7 url = "https://pldaniels.com/${pname}/${pname}-${version}.tar.gz";
8 sha256 = "0sj06ibmlzy34n8v0mnlq2gwidy7n2aqcwgjh0xssz3vi941aqc9";
11 buildInputs = [ libiconv ];
13 sed -i Makefile -e "s@LOCATION=.*@LOCATION=$out@" -e "s@man/man1@share/&@"
14 mkdir -p "$out/bin" "$out/share/man/man1"
17 env.NIX_CFLAGS_COMPILE = " -Wno-error ";
20 description = "Attachment extractor for MIME messages";
21 maintainers = with maintainers; [ raskin ];
22 homepage = "https://pldaniels.com/ripmime/";
23 platforms = platforms.all;
24 mainProgram = "ripmime";
29 downloadPage = "https://pldaniels.com/ripmime/";