file: build on windows
This commit is contained in:
parent
53cb8dc09e
commit
09fed91ec8
@ -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;
|
||||
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user