mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-21 12:23:55 +00:00
ghcjs: get socket.io from pkgsHostHost
This is a bit dubvious, but the alternative of making nodejs a nativeBuildInput for node packages is worse. In general the cross story for interpreted languages is murky, and this fits that pattern.
This commit is contained in:
parent
ad93663a48
commit
c3c245dcda
@ -1,4 +1,5 @@
|
||||
{ stdenv
|
||||
, pkgsHostHost
|
||||
, callPackage
|
||||
, fetchgit
|
||||
, ghcjsSrcJson ? null
|
||||
@ -14,7 +15,6 @@
|
||||
, pkgconfig
|
||||
, gcc
|
||||
, lib
|
||||
, nodePackages
|
||||
, ghcjsDepOverrides ? (_:_:{})
|
||||
, haskell
|
||||
}:
|
||||
@ -47,7 +47,7 @@ let
|
||||
|
||||
enableShared = true;
|
||||
|
||||
socket-io = nodePackages."socket.io";
|
||||
socket-io = pkgsHostHost.nodePackages."socket.io";
|
||||
|
||||
# Relics of the old GHCJS build system
|
||||
stage1Packages = [];
|
||||
|
@ -33,7 +33,7 @@
|
||||
, alex, happy, git, gnumake, autoconf, patch
|
||||
, automake, libtool
|
||||
, cryptohash
|
||||
, haddock, hspec, xhtml, pkgs
|
||||
, haddock, hspec, xhtml, pkgs, pkgsHostHost
|
||||
, coreutils
|
||||
, libiconv
|
||||
|
||||
@ -137,7 +137,7 @@ in mkDerivation ({
|
||||
isCross = true;
|
||||
isGhcjs = true;
|
||||
inherit nodejs ghcjsBoot;
|
||||
socket-io = pkgs.nodePackages."socket.io";
|
||||
socket-io = pkgsHostHost.nodePackages."socket.io";
|
||||
haskellCompilerName = "ghcjs-${version}";
|
||||
|
||||
# let us assume ghcjs is never actually cross compiled
|
||||
|
Loading…
Reference in New Issue
Block a user