7 stdenv.mkDerivation rec {
11 url = "https://pldaniels.com/${pname}/${pname}-${version}.tar.gz";
12 sha256 = "0sj06ibmlzy34n8v0mnlq2gwidy7n2aqcwgjh0xssz3vi941aqc9";
16 sed -i Makefile -e "s@LOCATION=.*@LOCATION=$out@" -e "s@man/man1@share/&@"
17 mkdir -p "$out/bin" "$out/share/man/man1"
22 NIX_CFLAGS_COMPILE = " -Wno-error ";
24 // lib.optionalAttrs stdenv.hostPlatform.isDarwin {
25 NIX_LDFLAGS = "-liconv";
29 description = "Attachment extractor for MIME messages";
30 maintainers = with maintainers; [ raskin ];
31 homepage = "https://pldaniels.com/ripmime/";
32 platforms = platforms.all;
33 mainProgram = "ripmime";
38 downloadPage = "https://pldaniels.com/ripmime/";