nixpkgs/pkgs/tools/misc/file/default.nix
R. RyanTM 02b022a9b2 file: 5.32 -> 5.33
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/file/versions.

These checks were done:

- built on NixOS
- ran ‘/nix/store/n5afz3w8g0mj9pf5qcndb3kdz4jbljca-file-5.33/bin/file --help’ got 0 exit code
- ran ‘/nix/store/n5afz3w8g0mj9pf5qcndb3kdz4jbljca-file-5.33/bin/file help’ got 0 exit code
- found 5.33 with grep in /nix/store/n5afz3w8g0mj9pf5qcndb3kdz4jbljca-file-5.33
- directory tree listing: https://gist.github.com/b6f0a44bc22e88f13fe5dbc4f56d9296
2018-04-17 02:45:07 -07:00

28 lines
674 B
Nix

{ stdenv, fetchurl, file, zlib }:
stdenv.mkDerivation rec {
name = "file-${version}";
version = "5.33";
src = fetchurl {
urls = [
"ftp://ftp.astron.com/pub/file/${name}.tar.gz"
"https://distfiles.macports.org/file/${name}.tar.gz"
];
sha256 = "1iipnwjkag7q04zjkaqic41r9nlw0ml6mhqian6qkkbisb1whlhw";
};
nativeBuildInputs = stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) file;
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;
};
}