forked from mirrors/nixpkgs
direnv: make cross-compile on windows
This commit is contained in:
parent
6f2475f5bf
commit
3681fa5456
|
@ -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 ];
|
||||
};
|
||||
|
||||
|
|
|
@ -109,7 +109,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
license = licenses.gpl3Plus;
|
||||
|
||||
platforms = platforms.unix;
|
||||
platforms = platforms.unix ++ platforms.windows;
|
||||
|
||||
maintainers = [ maintainers.eelco ];
|
||||
};
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
|
@ -74,7 +74,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
license = licenses.gpl3Plus;
|
||||
|
||||
platforms = platforms.unix;
|
||||
platforms = platforms.unix ++ platforms.windows;
|
||||
|
||||
maintainers = [ ];
|
||||
};
|
||||
|
|
|
@ -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 ];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue