ghcjs: make it easier to override shims and ghcjs-boot

This commit is contained in:
David Waern 2015-10-16 21:58:44 +02:00
parent 620063af36
commit d1360231d1
3 changed files with 19 additions and 15 deletions

View File

@ -36,22 +36,12 @@
, haddock, hspec, xhtml, primitive, cacert, pkgs
, coreutils
, libiconv
, ghcjsBoot ? import ./ghcjs-boot.nix { inherit fetchgit; }
, shims ? import ./shims.nix { inherit fetchFromGitHub; }
}:
let
version = "0.1.0";
ghcjsBoot = fetchgit {
url = "git://github.com/ghcjs/ghcjs-boot.git";
rev = "39cd58e12f02fa99f493387ba4c3708819a72294";
sha256 = "0s7hvg60piklrg9ypa7r44l4qzvpinrgsaffak6fr7gd3k08wn9d";
fetchSubmodules = true;
};
shims = fetchFromGitHub {
owner = "ghcjs";
repo = "shims";
rev = "f17d10cf47450fe4e00433e988db0bddddb35cc0";
sha256 = "1kgnkkz1khzkmb0dm0ssp8l17iy9d9n9phszcj6vg9vi7v9y7l05";
};
in mkDerivation (rec {
let version = "0.1.0"; in
mkDerivation (rec {
pname = "ghcjs";
inherit version;
src = fetchFromGitHub {

View File

@ -0,0 +1,7 @@
{ fetchgit }:
fetchgit {
url = git://github.com/ghcjs/ghcjs-boot.git;
rev = "39cd58e12f02fa99f493387ba4c3708819a72294";
sha256 = "0s7hvg60piklrg9ypa7r44l4qzvpinrgsaffak6fr7gd3k08wn9d";
fetchSubmodules = true;
}

View File

@ -0,0 +1,7 @@
{ fetchFromGitHub }:
fetchFromGitHub {
owner = "ghcjs";
repo = "shims";
rev = "f17d10cf47450fe4e00433e988db0bddddb35cc0";
sha256 = "1kgnkkz1khzkmb0dm0ssp8l17iy9d9n9phszcj6vg9vi7v9y7l05";
}