forked from mirrors/nixpkgs
Merge pull request #10423 from waern/ghcjs-parameterise
ghcjs: make it easier to override shims and ghcjs-boot
This commit is contained in:
commit
38fa633b3a
|
@ -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 {
|
||||
|
|
7
pkgs/development/compilers/ghcjs/ghcjs-boot.nix
Normal file
7
pkgs/development/compilers/ghcjs/ghcjs-boot.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ fetchgit }:
|
||||
fetchgit {
|
||||
url = git://github.com/ghcjs/ghcjs-boot.git;
|
||||
rev = "39cd58e12f02fa99f493387ba4c3708819a72294";
|
||||
sha256 = "0s7hvg60piklrg9ypa7r44l4qzvpinrgsaffak6fr7gd3k08wn9d";
|
||||
fetchSubmodules = true;
|
||||
}
|
7
pkgs/development/compilers/ghcjs/shims.nix
Normal file
7
pkgs/development/compilers/ghcjs/shims.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ fetchFromGitHub }:
|
||||
fetchFromGitHub {
|
||||
owner = "ghcjs";
|
||||
repo = "shims";
|
||||
rev = "f17d10cf47450fe4e00433e988db0bddddb35cc0";
|
||||
sha256 = "1kgnkkz1khzkmb0dm0ssp8l17iy9d9n9phszcj6vg9vi7v9y7l05";
|
||||
}
|
Loading…
Reference in a new issue