direnv: make cross-compile on windows

This commit is contained in:
Jörg Thalheim 2018-11-22 21:25:05 +00:00
parent 6f2475f5bf
commit 3681fa5456
No known key found for this signature in database
GPG Key ID: CA4106B8D7CC79FA
6 changed files with 10 additions and 9 deletions

View File

@ -75,7 +75,7 @@ stdenv.mkDerivation rec {
description = "MIT Kerberos 5";
homepage = http://web.mit.edu/kerberos/;
license = licenses.mit;
platforms = platforms.unix;
platforms = platforms.unix ++ platforms.windows;
maintainers = with maintainers; [ wkennington ];
};

View File

@ -109,7 +109,7 @@ stdenv.mkDerivation rec {
license = licenses.gpl3Plus;
platforms = platforms.unix;
platforms = platforms.unix ++ platforms.windows;
maintainers = [ maintainers.eelco ];
};

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, buildGoPackage, bash}:
{ stdenv, fetchFromGitHub, buildGoPackage, bash, fetchpatch }:
buildGoPackage rec {
name = "direnv-${version}";
@ -16,9 +16,10 @@ buildGoPackage rec {
cd $NIX_BUILD_TOP/go/src/$goPackagePath
'';
buildPhase = ''
make BASH_PATH=${bash}/bin/bash
'';
# we have no bash at the moment for windows
makeFlags = stdenv.lib.optional (!stdenv.hostPlatform.isWindows) [
"BASH_PATH=${bash}/bin/bash"
];
installPhase = ''
mkdir -p $out

View File

@ -98,7 +98,7 @@ stdenv.mkDerivation rec {
homepage = http://www.openssh.com/;
description = "An implementation of the SSH protocol";
license = stdenv.lib.licenses.bsd2;
platforms = platforms.unix;
platforms = platforms.unix ++ platforms.windows;
maintainers = with maintainers; [ eelco aneeshusa ];
};
}

View File

@ -74,7 +74,7 @@ stdenv.mkDerivation rec {
license = licenses.gpl3Plus;
platforms = platforms.unix;
platforms = platforms.unix ++ platforms.windows;
maintainers = [ ];
};

View File

@ -8934,7 +8934,7 @@ let
meta = with stdenv.lib; {
description = "The World-Wide Web library for Perl";
license = with licenses; [ artistic1 gpl1Plus ];
platforms = platforms.unix;
platforms = platforms.unix ++ platforms.windows;
};
buildInputs = [ TestFatal TestNeeds TestRequiresInternet ];
};