mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
ghcjs: Make ghcjs-boot source code overridable
This commit is contained in:
parent
b16dc8dcc5
commit
55720db388
@ -38,7 +38,16 @@
|
||||
, coreutils
|
||||
, libiconv
|
||||
|
||||
, ghcjsBoot ? import ./ghcjs-boot.nix { inherit fetchgit runCommand; }
|
||||
, ghcjsBootSrc ? fetchgit {
|
||||
url = git://github.com/ghcjs/ghcjs-boot.git;
|
||||
rev = "97dea5c4145bf80a1e7cffeb1ecd4d0ecacd5a2f";
|
||||
sha256 = "1cgjzm595l2dx6fibzbkyv23bp1857qia0hb9d8aghf006al558j";
|
||||
fetchSubmodules = true;
|
||||
}
|
||||
, ghcjsBoot ? import ./ghcjs-boot.nix {
|
||||
inherit runCommand;
|
||||
src = ghcjsBootSrc;
|
||||
}
|
||||
, shims ? import ./shims.nix { inherit fetchFromGitHub; }
|
||||
}:
|
||||
let
|
||||
|
@ -1,14 +1,4 @@
|
||||
{ runCommand, fetchgit }:
|
||||
|
||||
let
|
||||
src = fetchgit {
|
||||
url = git://github.com/ghcjs/ghcjs-boot.git;
|
||||
rev = "97dea5c4145bf80a1e7cffeb1ecd4d0ecacd5a2f";
|
||||
sha256 = "1cgjzm595l2dx6fibzbkyv23bp1857qia0hb9d8aghf006al558j";
|
||||
fetchSubmodules = true;
|
||||
};
|
||||
|
||||
in
|
||||
{ runCommand, src }:
|
||||
|
||||
# we remove the patches so ghcjs-boot doesn't try to apply them again.
|
||||
runCommand "${src.name}-patched" {} ''
|
||||
|
Loading…
Reference in New Issue
Block a user