ripemime: fix darwin build

This commit is contained in:
Ben Siraphob 2021-03-08 23:14:33 +07:00
parent 8bd1dd33d1
commit 30350ec028

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl }:
{ lib, stdenv, fetchurl, libiconv }:
stdenv.mkDerivation rec {
pname = "ripmime";
@ -8,6 +8,7 @@ stdenv.mkDerivation rec {
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"
@ -19,7 +20,7 @@ stdenv.mkDerivation rec {
description = "Attachment extractor for MIME messages";
maintainers = with maintainers; [ raskin ];
homepage = "http://www.pldaniels.com/ripmime/";
platforms = platforms.linux;
platforms = platforms.all;
};
passthru = {