cedille: fix hash

This commit is contained in:
Mario Rodas 2019-05-05 20:47:29 -05:00
parent 4e414a1dd0
commit e47dd1bb34
No known key found for this signature in database
GPG Key ID: 4C4BEFD7B18DC5E8

View File

@ -1,8 +1,6 @@
{ stdenv { stdenv
, lib , lib
, fetchFromGitHub , fetchFromGitHub
, fetchpatch
, texinfo
, alex , alex
, happy , happy
, Agda , Agda
@ -19,11 +17,11 @@ stdenv.mkDerivation rec {
owner = "cedille"; owner = "cedille";
repo = "cedille"; repo = "cedille";
rev = "v${version}"; rev = "v${version}";
sha256 = "17j7an5bharc8q1pj06615zmflipjdd0clf67cnfdhsmqwzf6l9r"; sha256 = "16pc72wz6kclq9yv2r8hx85mkp0s125h12snrhcjxkbl41xx2ynb";
fetchSubmodules = true; fetchSubmodules = true;
}; };
nativeBuildInputs = [ texinfo alex happy ]; nativeBuildInputs = [ alex happy ];
buildInputs = [ Agda (ghcWithPackages (ps: [ps.ieee])) ]; buildInputs = [ Agda (ghcWithPackages (ps: [ps.ieee])) ];
LANG = "en_US.UTF-8"; LANG = "en_US.UTF-8";
@ -31,26 +29,10 @@ stdenv.mkDerivation rec {
lib.optionalString (buildPlatform.libc == "glibc") lib.optionalString (buildPlatform.libc == "glibc")
"${buildPackages.glibcLocales}/lib/locale/locale-archive"; "${buildPackages.glibcLocales}/lib/locale/locale-archive";
patches = [
# texinfo direntry fix. See: https://github.com/cedille/cedille/pull/86
(fetchpatch {
url = "https://github.com/cedille/cedille/commit/c058f42179a635c7b6179772c30f0eba4ac53724.patch";
sha256 = "02qd86k5bdrygjzh2k0j0q5qk4nk2vwnsz7nvlssvysbvsmiba7x";
})
];
postPatch = '' postPatch = ''
patchShebangs create-libraries.sh patchShebangs create-libraries.sh
patchShebangs docs/src/compile-docs.sh
''; '';
# We regenerate the info file in order to fix the direntry
preBuild = ''
rm -f docs/info/cedille-info-main.info
'';
buildFlags = [ "all" "cedille-docs" ];
installPhase = '' installPhase = ''
install -Dm755 -t $out/bin/ cedille install -Dm755 -t $out/bin/ cedille
install -Dm755 -t $out/bin/ core/cedille-core install -Dm755 -t $out/bin/ core/cedille-core