git.iko.soy/typeable/nixpkgs
on master help sign in
ripemime: fix darwin build
30350ecBen Siraphob
pkgs/tools/networking/ripmime/default.nix+3−2
@@ -1,4 +1,4 @@
1−{ lib, stdenv, fetchurl }:
1+{ lib, stdenv, fetchurl, libiconv }:
2
2
3stdenv.mkDerivation rec {
3stdenv.mkDerivation rec {
4 pname = "ripmime";
4 pname = "ripmime";
@@ -8,6 +8,7 @@ stdenv.mkDerivation rec {
8 sha256 = "0sj06ibmlzy34n8v0mnlq2gwidy7n2aqcwgjh0xssz3vi941aqc9";
8 sha256 = "0sj06ibmlzy34n8v0mnlq2gwidy7n2aqcwgjh0xssz3vi941aqc9";
9 };
9 };
10
10
11+ buildInputs = [ libiconv ];
11 preInstall = ''
12 preInstall = ''
12 sed -i Makefile -e "s@LOCATION=.*@LOCATION=$out@" -e "s@man/man1@share/&@"
13 sed -i Makefile -e "s@LOCATION=.*@LOCATION=$out@" -e "s@man/man1@share/&@"
13 mkdir -p "$out/bin" "$out/share/man/man1"
14 mkdir -p "$out/bin" "$out/share/man/man1"
@@ -19,7 +20,7 @@ stdenv.mkDerivation rec {
19 description = "Attachment extractor for MIME messages";
20 description = "Attachment extractor for MIME messages";
20 maintainers = with maintainers; [ raskin ];
21 maintainers = with maintainers; [ raskin ];
21 homepage = "http://www.pldaniels.com/ripmime/";
22 homepage = "http://www.pldaniels.com/ripmime/";
22− platforms = platforms.linux;
23+ platforms = platforms.all;
23 };
24 };
24
25
25 passthru = {
26 passthru = {