summary refs log tree commit diff
path: root/pkgs/tools/filesystems/exfat-utils/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/filesystems/exfat-utils/default.nix')
-rw-r--r--pkgs/tools/filesystems/exfat-utils/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/tools/filesystems/exfat-utils/default.nix b/pkgs/tools/filesystems/exfat-utils/default.nix
new file mode 100644
index 00000000000..a767ba36b3f
--- /dev/null
+++ b/pkgs/tools/filesystems/exfat-utils/default.nix
@@ -0,0 +1,34 @@
+{ stdenv, fetchurl, scons }:
+
+let version = "1.1.1"; in
+stdenv.mkDerivation rec {
+  name = "exfat-utils-${version}";
+
+  src = fetchurl {
+    sha256 = "0ck2snhlhp965bb9a4y1g2lpl979sw1yznm79wbavyv174458i66";
+    url = "https://docs.google.com/uc?export=download&id=0B7CLI-REKbE3UzNtSkRvdHBpdjQ";
+    name = "${name}.tar.gz";
+  };
+
+  meta = with stdenv.lib; {
+    description = "Free exFAT file system utilities";
+    longDescription = ''
+      Full-featured exFAT file system implementation for GNU/Linux and other
+      Unix-like systems.
+    '';
+    homepage = https://code.google.com/p/exfat;
+    license = with licenses; gpl2Plus;
+    platforms = with platforms; linux;
+    maintainers = with maintainers; [ nckx ];
+  };
+
+  buildInputs = [ scons ];
+
+  buildPhase = ''
+    export CCFLAGS="-std=c99"
+    mkdir -pv $out/sbin
+    scons DESTDIR=$out/sbin install
+  '';
+
+  installPhase = ":";
+}