From a8c98bc0135b223de97d293aeeea6bc617523d9d Mon Sep 17 00:00:00 2001 From: Jude Taylor Date: Mon, 22 Jun 2015 14:10:56 -0700 Subject: [PATCH] darwin purity: mercurial --- pkgs/applications/version-management/mercurial/default.nix | 7 +++++-- pkgs/top-level/all-packages.nix | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/version-management/mercurial/default.nix b/pkgs/applications/version-management/mercurial/default.nix index 2db8cf72350..6c58fbd3689 100644 --- a/pkgs/applications/version-management/mercurial/default.nix +++ b/pkgs/applications/version-management/mercurial/default.nix @@ -1,5 +1,7 @@ { stdenv, fetchurl, python, makeWrapper, docutils, unzip, hg-git, dulwich -, guiSupport ? false, tk ? null, curses, cacert }: +, guiSupport ? false, tk ? null, curses, cacert + +, ApplicationServices }: let version = "3.3.3"; @@ -17,7 +19,8 @@ stdenv.mkDerivation { inherit python; # pass it so that the same version can be used in hg2git pythonPackages = [ curses ]; - buildInputs = [ python makeWrapper docutils unzip ]; + buildInputs = [ python makeWrapper docutils unzip ] + ++ stdenv.lib.optional stdenv.isDarwin ApplicationServices; makeFlags = "PREFIX=$(out)"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index dadca8f6861..6df02e2aa89 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -11776,6 +11776,7 @@ let mercurial = callPackage ../applications/version-management/mercurial { inherit (pythonPackages) curses docutils hg-git dulwich; + inherit (darwin.apple_sdk.frameworks) ApplicationServices; guiSupport = false; # use mercurialFull to get hgk GUI };