mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 12:53:59 +03:00
ghc-head: fix hash.
Apparently fetchgit lies...
This commit is contained in:
parent
a4cd6f1378
commit
6f7593fddc
@ -24,12 +24,11 @@ in stdenv.mkDerivation (rec {
|
|||||||
src = fetchgit {
|
src = fetchgit {
|
||||||
url = "git://git.haskell.org/ghc.git";
|
url = "git://git.haskell.org/ghc.git";
|
||||||
inherit rev;
|
inherit rev;
|
||||||
sha256 = "091zpb9vqqy4jqh4q7sz04dh1yfdczaaikbxi5ppim01gzbxwn65";
|
sha256 = "1ryggmz961qd0fl50rkjjvi6g9azwla2vx9310a9nzjaj5x6ib4y";
|
||||||
};
|
};
|
||||||
|
|
||||||
postUnpack = ''
|
postUnpack = ''
|
||||||
chmod -R +w ghc
|
pushd ghc-${builtins.substring 0 7 rev}
|
||||||
pushd ghc
|
|
||||||
echo ${version} >VERSION
|
echo ${version} >VERSION
|
||||||
echo ${rev} >GIT_COMMIT_ID
|
echo ${rev} >GIT_COMMIT_ID
|
||||||
patchShebangs .
|
patchShebangs .
|
||||||
@ -44,7 +43,7 @@ in stdenv.mkDerivation (rec {
|
|||||||
preConfigure = commonPreConfigure;
|
preConfigure = commonPreConfigure;
|
||||||
|
|
||||||
configureFlags = [
|
configureFlags = [
|
||||||
"CC=cc"
|
"CC=${stdenv.cc}/bin/cc"
|
||||||
"--with-gmp-includes=${gmp.dev}/include" "--with-gmp-libraries=${gmp.out}/lib"
|
"--with-gmp-includes=${gmp.dev}/include" "--with-gmp-libraries=${gmp.out}/lib"
|
||||||
"--with-curses-includes=${ncurses.dev}/include" "--with-curses-libraries=${ncurses.out}/lib"
|
"--with-curses-includes=${ncurses.dev}/include" "--with-curses-libraries=${ncurses.out}/lib"
|
||||||
] ++ stdenv.lib.optional stdenv.isDarwin [
|
] ++ stdenv.lib.optional stdenv.isDarwin [
|
||||||
|
Loading…
Reference in New Issue
Block a user