cedille: 1.0.0 -> 1.1.1 (#60307)
This commit is contained in:
parent
3f6c29d79e
commit
7a965dcdab
@ -1,50 +1,70 @@
|
|||||||
{ stdenv, lib, fetchFromGitHub, alex, happy, Agda, agdaIowaStdlib,
|
{ stdenv
|
||||||
buildPlatform, buildPackages, ghcWithPackages, fetchpatch }:
|
, lib
|
||||||
let
|
, fetchFromGitHub
|
||||||
options-patch =
|
, fetchpatch
|
||||||
fetchpatch {
|
, texinfo
|
||||||
url = https://github.com/cedille/cedille/commit/ee62b0fabde6c4f7299a3778868519255cc4a64f.patch;
|
, alex
|
||||||
name = "options.patch";
|
, happy
|
||||||
sha256 = "19xzn9sqpfnfqikqy1x9lb9mb6722kbgvrapl6cf8ckcw8cfj8cz";
|
, Agda
|
||||||
};
|
, buildPlatform
|
||||||
in
|
, buildPackages
|
||||||
|
, ghcWithPackages
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "1.0.0";
|
version = "1.1.1";
|
||||||
name = "cedille-${version}";
|
pname = "cedille";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "cedille";
|
owner = "cedille";
|
||||||
repo = "cedille";
|
repo = "cedille";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "08c2vgg8i6l3ws7hd5gsj89mki36lxm7x7s8hi1qa5gllq04a832";
|
sha256 = "17j7an5bharc8q1pj06615zmflipjdd0clf67cnfdhsmqwzf6l9r";
|
||||||
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
buildInputs = [ alex happy Agda (ghcWithPackages (ps: [ps.ieee])) ];
|
|
||||||
|
|
||||||
patches = [options-patch];
|
nativeBuildInputs = [ texinfo alex happy ];
|
||||||
|
buildInputs = [ Agda (ghcWithPackages (ps: [ps.ieee])) ];
|
||||||
|
|
||||||
LANG = "en_US.UTF-8";
|
LANG = "en_US.UTF-8";
|
||||||
LOCALE_ARCHIVE =
|
LOCALE_ARCHIVE =
|
||||||
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
|
||||||
cp -r ${agdaIowaStdlib.src} ial
|
patchShebangs docs/src/compile-docs.sh
|
||||||
chmod -R 755 ial
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
outputs = ["out" "lib"];
|
# 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 = ''
|
||||||
mkdir -p $out/bin
|
install -Dm755 -t $out/bin/ cedille
|
||||||
mv cedille $out/bin/cedille
|
install -Dm755 -t $out/bin/ core/cedille-core
|
||||||
mv lib $lib
|
install -Dm644 -t $out/share/info docs/info/cedille-info-main.info
|
||||||
|
|
||||||
|
mkdir -p $out/lib/
|
||||||
|
cp -r lib/ $out/lib/cedille/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
description = "An interactive theorem-prover and dependently typed programming language, based on extrinsic (aka Curry-style) type theory.";
|
description = "An interactive theorem-prover and dependently typed programming language, based on extrinsic (aka Curry-style) type theory";
|
||||||
homepage = https://cedille.github.io/;
|
homepage = https://cedille.github.io/;
|
||||||
license = stdenv.lib.licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = [ stdenv.lib.maintainers.mpickering ];
|
maintainers = with maintainers; [ marsam mpickering ];
|
||||||
platforms = stdenv.lib.platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user