@@ -1,21 +1,26 @@
11{ stdenv, fetchurl, zlib }:
22
33stdenv.mkDerivation rec {
4− name = "file-5.28";
5−
6− buildInputs = [ zlib ];
4+ name = "file-${version}";
5+ version = "5.30";
76
87 src = fetchurl {
98 urls = [
109 "ftp://ftp.astron.com/pub/file/${name}.tar.gz"
11− "http://distfiles.macports.org/file/${name}.tar.gz"
10+ "https://distfiles.macports.org/file/${name}.tar.gz"
1211 ];
13− sha256 = "04p0w9ggqq6cqvwhyni0flji1z0rwrz896hmhkxd2mc6dca5xjqf";
12+ sha256 = "694c2432e5240187524c9e7cf1ec6acc77b47a0e19554d34c14773e43dbbf214";
1413 };
1514
16− meta = {
15+ buildInputs = [ zlib ];
16+
17+ doCheck = true;
18+
19+
20+ meta = with stdenv.lib; {
1721 homepage = "http://darwinsys.com/file";
1822 description = "A program that shows the type of files";
19− platforms = stdenv.lib.platforms.all;
23+ license = licenses.bsd2;
24+ platforms = platforms.all;
2025 };
2126}