file: build on windows

This commit is contained in:
Matthew Bauer 2018-07-20 22:02:00 -04:00
parent 53cb8dc09e
commit 09fed91ec8
2 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, file, zlib }:
{ stdenv, fetchurl, file, zlib, libgnurx }:
stdenv.mkDerivation rec {
name = "file-${version}";
@ -13,10 +13,13 @@ stdenv.mkDerivation rec {
};
nativeBuildInputs = stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) file;
buildInputs = [ zlib ];
buildInputs = [ zlib ]
++ stdenv.lib.optional stdenv.hostPlatform.isWindows libgnurx;
doCheck = true;
makeFlags = if stdenv.hostPlatform.isWindows then "FILE_COMPILE=file"
else null;
meta = with stdenv.lib; {
homepage = http://darwinsys.com/file;

View File

@ -2387,7 +2387,9 @@ with pkgs;
figlet = callPackage ../tools/misc/figlet { };
file = callPackage ../tools/misc/file { };
file = callPackage ../tools/misc/file {
inherit (windows) libgnurx;
};
filegive = callPackage ../tools/networking/filegive { };