heptagon: refactor

This commit is contained in:
Weijia Wang 2023-09-21 00:22:16 +02:00
parent db530516a6
commit d29fd527ea

View file

@ -5,31 +5,34 @@
, ocamlPackages , ocamlPackages
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "heptagon"; pname = "heptagon";
version = "1.05.00"; version = "1.05.00";
src = fetchFromGitLab { src = fetchFromGitLab {
domain = "gitlab.inria.fr"; domain = "gitlab.inria.fr";
owner = "synchrone"; owner = "synchrone";
repo = pname; repo = "heptagon";
rev = "v${version}"; rev = "v${finalAttrs.version}";
sha256 = "sha256-b4O48MQT3Neh8a1Z5wRgS701w6XrwpsbSMprlqTT+CE="; hash = "sha256-b4O48MQT3Neh8a1Z5wRgS701w6XrwpsbSMprlqTT+CE=";
}; };
nativeBuildInputs = [ strictDeps = true;
nativeBuildInputs = with ocamlPackages; [
camlp4
findlib
makeWrapper makeWrapper
menhir
ocaml
ocamlbuild
]; ];
buildInputs = with ocamlPackages; [ buildInputs = with ocamlPackages; [
ocaml camlp4
findlib lablgtk
menhir
menhirLib menhirLib
ocamlgraph ocamlgraph
camlp4
ocamlbuild
lablgtk
]; ];
# the heptagon library in lib/heptagon is not executable # the heptagon library in lib/heptagon is not executable
@ -48,5 +51,6 @@ stdenv.mkDerivation rec {
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
maintainers = with maintainers; [ wegank ]; maintainers = with maintainers; [ wegank ];
mainProgram = "heptc"; mainProgram = "heptc";
platforms = platforms.unix;
}; };
} })