diff options
author | Matthew Bauer <matthew.bauer@obsidian.systems> | 2018-07-20 22:02:00 -0400 |
---|---|---|
committer | Matthew Bauer <matthew.bauer@obsidian.systems> | 2018-07-21 17:00:05 -0400 |
commit | 09fed91ec8e084c4cdfd9e2363d65e8bb7c48091 (patch) | |
tree | ecc0a9d6b70414378088191cb387bd43742b7753 /pkgs/tools/misc/file | |
parent | 53cb8dc09e56591fba8db76d3187a99e492f8d56 (diff) |
file: build on windows
Diffstat (limited to 'pkgs/tools/misc/file')
-rw-r--r-- | pkgs/tools/misc/file/default.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/tools/misc/file/default.nix b/pkgs/tools/misc/file/default.nix index aeb43d7c1151a..485f46d031447 100644 --- a/pkgs/tools/misc/file/default.nix +++ b/pkgs/tools/misc/file/default.nix @@ -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; |