From 7e51c79f171050c7c1c926d088a8d5b141265d74 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Wed, 23 Oct 2019 15:54:12 +0000 Subject: [PATCH] monotoneViz: refactor out of ocamlPackages --- .../applications/version-management/monotone-viz/default.nix | 4 +++- pkgs/top-level/all-packages.nix | 4 +++- pkgs/top-level/ocaml-packages.nix | 5 ----- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/pkgs/applications/version-management/monotone-viz/default.nix b/pkgs/applications/version-management/monotone-viz/default.nix index bee1c82e11b..c23feec6f43 100644 --- a/pkgs/applications/version-management/monotone-viz/default.nix +++ b/pkgs/applications/version-management/monotone-viz/default.nix @@ -1,4 +1,4 @@ -{stdenv, fetchurl, ocaml, lablgtk, libgnomecanvas, camlp4, glib, pkgconfig, makeWrapper +{ stdenv, fetchurl, ocamlPackages, gnome2, pkgconfig, makeWrapper , libtool, libpng, yacc, expat, fontconfig, gd, pango, libjpeg, libwebp, xlibsWrapper, libXaw }: # We need an old version of Graphviz for format compatibility reasons. @@ -7,6 +7,8 @@ let graphviz_2_0 = import ./graphviz-2.0.nix { inherit stdenv fetchurl pkgconfig xlibsWrapper libpng libjpeg expat libXaw yacc libtool fontconfig pango gd libwebp; }; in +let inherit (gnome2) libgnomecanvas glib; in +let inherit (ocamlPackages) ocaml lablgtk camlp4; in stdenv.mkDerivation rec { version = "1.0.2"; pname = "monotone-viz"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index cff976f77bb..4d2d2a3b30d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19758,7 +19758,9 @@ in lua = lua5; }; - inherit (ocaml-ng.ocamlPackages_4_01_0) monotoneViz; + monotoneViz = callPackage ../applications/version-management/monotone-viz { + ocamlPackages = ocaml-ng.ocamlPackages_4_01_0; + }; moolticute = libsForQt5.callPackage ../applications/misc/moolticute { }; diff --git a/pkgs/top-level/ocaml-packages.nix b/pkgs/top-level/ocaml-packages.nix index ed33c2b6415..f2e0559244f 100644 --- a/pkgs/top-level/ocaml-packages.nix +++ b/pkgs/top-level/ocaml-packages.nix @@ -1117,11 +1117,6 @@ let google-drive-ocamlfuse = callPackage ../applications/networking/google-drive-ocamlfuse { }; - - monotoneViz = callPackage ../applications/version-management/monotone-viz { - inherit (pkgs.gnome2) libgnomecanvas glib; - }; - unison = callPackage ../applications/networking/sync/unison { enableX11 = config.unison.enableX11 or true; };