2022-07-14 12:49:19 +00:00
|
|
|
{ lib
|
|
|
|
, makeDesktopItem
|
|
|
|
, copyDesktopItems
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2022-07-14 12:49:19 +00:00
|
|
|
, glib
|
|
|
|
, gnome
|
|
|
|
, mkCoqDerivation
|
|
|
|
, coq
|
|
|
|
, version ? null }:
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
mkCoqDerivation rec {
|
2022-07-14 12:49:19 +00:00
|
|
|
pname = "coqide";
|
|
|
|
inherit version;
|
|
|
|
|
|
|
|
inherit (coq) src;
|
|
|
|
release."${coq.version}" = {};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
defaultVersion = if lib.versions.isGe "8.14" coq.version then coq.version else null;
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs dev/tools/
|
|
|
|
'';
|
|
|
|
prefixKey = "-prefix ";
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
useDune = true;
|
2022-07-14 12:49:19 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
copyDesktopItems
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2022-07-14 12:49:19 +00:00
|
|
|
coq.ocamlPackages.lablgtk3-sourceview3
|
|
|
|
glib
|
|
|
|
gnome.adwaita-icon-theme
|
|
|
|
];
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
runHook preBuild
|
|
|
|
dune build -p ${pname} -j $NIX_BUILD_CORES
|
|
|
|
runHook postBuild
|
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
dune install --prefix $out ${pname}
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
desktopItems = makeDesktopItem {
|
|
|
|
name = "coqide";
|
|
|
|
exec = "coqide";
|
|
|
|
icon = "coq";
|
|
|
|
desktopName = "CoqIDE";
|
|
|
|
comment = "Graphical interface for the Coq proof assistant";
|
|
|
|
categories = [ "Development" "Science" "Math" "IDE" "GTK" ];
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://coq.inria.fr";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "CoqIDE user interface for the Coq proof assistant";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "coqide";
|
2022-07-14 12:49:19 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = [ maintainers.Zimmi48 ];
|
|
|
|
};
|
|
|
|
}
|