at 18.03-beta 27 lines 674 B view raw
1{ stdenv, fetchurl, file, zlib }: 2 3stdenv.mkDerivation rec { 4 name = "file-${version}"; 5 version = "5.32"; 6 7 src = fetchurl { 8 urls = [ 9 "ftp://ftp.astron.com/pub/file/${name}.tar.gz" 10 "https://distfiles.macports.org/file/${name}.tar.gz" 11 ]; 12 sha256 = "0l1bfa0icng9vdwya00ff48fhvjazi5610ylbhl35qi13d6xqfc6"; 13 }; 14 15 nativeBuildInputs = stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) file; 16 buildInputs = [ zlib ]; 17 18 doCheck = true; 19 20 21 meta = with stdenv.lib; { 22 homepage = http://darwinsys.com/file; 23 description = "A program that shows the type of files"; 24 license = licenses.bsd2; 25 platforms = platforms.all; 26 }; 27}