1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 07:00:43 +00:00
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;
};
}