summary refs log tree commit diff
path: root/pkgs/tools/filesystems/dosfstools
diff options
context:
space:
mode:
authorGeorge Whewell <georgerw@gmail.com>2017-05-12 16:09:12 +0100
committergeorgewhewell <georgerw@gmail.com>2017-05-13 11:27:19 +0100
commit867e7f4dcfc4b649cc02bf70af795593a3b91a56 (patch)
treea13915c1df44dbb14e12798445894e0c4ffa0fcd /pkgs/tools/filesystems/dosfstools
parent7b340e1cf076b0b8cfe3fb62088ea4240e5ac292 (diff)
downloadnixpkgs-867e7f4dcfc4b649cc02bf70af795593a3b91a56.tar
nixpkgs-867e7f4dcfc4b649cc02bf70af795593a3b91a56.tar.gz
nixpkgs-867e7f4dcfc4b649cc02bf70af795593a3b91a56.tar.bz2
nixpkgs-867e7f4dcfc4b649cc02bf70af795593a3b91a56.tar.lz
nixpkgs-867e7f4dcfc4b649cc02bf70af795593a3b91a56.tar.xz
nixpkgs-867e7f4dcfc4b649cc02bf70af795593a3b91a56.tar.zst
nixpkgs-867e7f4dcfc4b649cc02bf70af795593a3b91a56.zip
fix dosfstools build on darwin
Diffstat (limited to 'pkgs/tools/filesystems/dosfstools')
-rw-r--r--pkgs/tools/filesystems/dosfstools/default.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/pkgs/tools/filesystems/dosfstools/default.nix b/pkgs/tools/filesystems/dosfstools/default.nix
index d6a4e83a533..2eeb2003a19 100644
--- a/pkgs/tools/filesystems/dosfstools/default.nix
+++ b/pkgs/tools/filesystems/dosfstools/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig }:
+{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, libiconv }:
 
 stdenv.mkDerivation rec {
   name = "dosfstools-${version}";
@@ -11,7 +11,8 @@ stdenv.mkDerivation rec {
     sha256 = "1a2zn1655d5f1m6jp9vpn3bp8yfxhcmxx3mx23ai9hmxiydiykr1";
   };
 
-  nativeBuildInputs = [ autoreconfHook pkgconfig ];
+  nativeBuildInputs = [ autoreconfHook pkgconfig ]
+    ++ stdenv.lib.optional stdenv.isDarwin libiconv;
 
   configureFlags = [ "--enable-compat-symlinks" ];
 
@@ -19,6 +20,6 @@ stdenv.mkDerivation rec {
     description = "Utilities for creating and checking FAT and VFAT file systems";
     repositories.git = git://daniel-baumann.ch/git/software/dosfstools.git;
     homepage = http://www.daniel-baumann.ch/software/dosfstools/;
-    platforms = stdenv.lib.platforms.linux;
+    platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin;
   };
 }