Added package 'fatsort'.

Fatsort sorts partition table on FAT12/16/32 partitions for devices that
don't sort the files for themselves (e.g. some media players).

+54
+1
lib/maintainers.nix
··· 90 90 jzellner = "Jeff Zellner <jeffz@eml.cc>"; 91 91 kkallio = "Karn Kallio <tierpluspluslists@gmail.com>"; 92 92 koral = "Koral <koral@mailoo.org>"; 93 + kovirobi = "Kovacsics Robert <kovirobi@gmail.com>"; 93 94 kragniz = "Louis Taylor <kragniz@gmail.com>"; 94 95 ktosiek = "Tomasz Kontusz <tomasz.kontusz@gmail.com>"; 95 96 lethalman = "Luca Bruno <lucabru@src.gnome.org>";
+20
pkgs/tools/filesystems/fatsort/default.nix
··· 1 + {stdenv, fetchurl, help2man}: 2 + 3 + stdenv.mkDerivation { 4 + name = "fatsort"; 5 + src = fetchurl { 6 + url = mirror://sourceforge/fatsort/fatsort-1.3.365.tar.gz; 7 + sha256 = "0g9zn2ns86g7zmy0y8hw1w1zhnd51hy8yl6kflyhxs49n5sc7b3p"; 8 + }; 9 + 10 + patches = [ ./fatsort-Makefiles.patch ]; 11 + 12 + buildInputs = [ help2man ]; 13 + 14 + meta = { 15 + homepage = http://fatsort.sourceforge.net/; 16 + description = "Sorts FAT partition table, for devices that don't do sorting of files."; 17 + maintainers = [ stdenv.lib.maintainers.kovirobi ]; 18 + license = stdenv.lib.licenses.gpl2; 19 + }; 20 + }
+31
pkgs/tools/filesystems/fatsort/fatsort-Makefiles.patch
··· 1 + diff -uNr fatsort-1.3.365-a/Makefile fatsort-1.3.365-b/Makefile 2 + --- fatsort-1.3.365-a/Makefile 2014-04-08 19:19:36.000000000 +0100 3 + +++ fatsort-1.3.365-b/Makefile 2014-12-14 18:31:55.982857720 +0000 4 + @@ -1,4 +1,5 @@ 5 + -MANDIR=/usr/local/share/man/man1 6 + +PREFIX=$(out) 7 + +MANDIR=$(PREFIX)/share/man/man1 8 + 9 + INSTALL_FLAGS=-m 0755 -p -D 10 + 11 + diff -uNr fatsort-1.3.365-a/src/Makefile fatsort-1.3.365-b/src/Makefile 12 + --- fatsort-1.3.365-a/src/Makefile 2014-04-08 19:19:36.000000000 +0100 13 + +++ fatsort-1.3.365-b/src/Makefile 2014-12-14 18:32:08.282870461 +0000 14 + @@ -1,3 +1,5 @@ 15 + +PREFIX=$(out) 16 + + 17 + CC=gcc 18 + LD=gcc 19 + 20 + @@ -33,9 +35,9 @@ 21 + 22 + # Mac OS X does not have a "/usr/local/sbin" 23 + ifeq ($(UNAME),Darwin) 24 + -SBINDIR=/usr/local/bin 25 + +SBINDIR=$(PREFIX)/bin 26 + else 27 + -SBINDIR=/usr/local/sbin 28 + +SBINDIR=$(PREFIX)/sbin 29 + endif 30 + 31 + OBJ=fatsort.o FAT_fs.o fileio.o endianness.o signal.o entrylist.o errors.o options.o clusterchain.o sort.o misc.o natstrcmp.o stringlist.o
+2
pkgs/top-level/all-packages.nix
··· 1145 1145 1146 1146 fakechroot = callPackage ../tools/system/fakechroot { }; 1147 1147 1148 + fatsort = callPackage ../tools/filesystems/fatsort { }; 1149 + 1148 1150 fatrace = callPackage ../os-specific/linux/fatrace { }; 1149 1151 1150 1152 fcitx = callPackage ../tools/inputmethods/fcitx { };