depot/third_party/nixpkgs/pkgs/tools/networking/ripmime/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

31 lines
816 B
Nix

{ lib, stdenv, fetchurl, libiconv }:
stdenv.mkDerivation rec {
pname = "ripmime";
version = "1.4.0.10";
src = fetchurl {
url = "https://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 = "https://pldaniels.com/ripmime/";
platforms = platforms.all;
};
passthru = {
updateInfo = {
downloadPage = "https://pldaniels.com/ripmime/";
};
};
}