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 ];
};