3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/misc/file/default.nix
2017-03-17 19:43:50 +01:00

27 lines
588 B
Nix

{ stdenv, fetchurl, zlib }:
stdenv.mkDerivation rec {
name = "file-${version}";
version = "5.30";
src = fetchurl {
urls = [
"ftp://ftp.astron.com/pub/file/${name}.tar.gz"
"https://distfiles.macports.org/file/${name}.tar.gz"
];
sha256 = "694c2432e5240187524c9e7cf1ec6acc77b47a0e19554d34c14773e43dbbf214";
};
buildInputs = [ zlib ];
doCheck = true;
meta = with stdenv.lib; {
homepage = "http://darwinsys.com/file";
description = "A program that shows the type of files";
license = licenses.bsd2;
platforms = platforms.all;
};
}