1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00
nixpkgs/pkgs/tools/networking/ripmime/default.nix
Artturin 6b2a05e190 treewide: manual fixups for
treewide: use toString on list NIX_CFLAGS_COMPILE
treewide: move NIX_CFLAGS_COMPILE to the env attrset
2023-02-22 21:23:04 +02:00

32 lines
825 B
Nix

{ 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/";
};
};
}