summary refs log tree commit diff
path: root/pkgs/tools/networking/mu
diff options
context:
space:
mode:
authorPeter Hoeg <peter@speartail.com>2017-03-03 09:41:14 +0800
committerPeter Hoeg <peter@hoeg.com>2017-05-11 12:53:12 +0800
commitc684c0e82d3af41127e786542bc90221f8cc805a (patch)
tree79fa89ff1cd497eb5f148f8d7610d21282c305de /pkgs/tools/networking/mu
parent97c613c5129742a325b2bb3fb355507ebefc4850 (diff)
downloadnixpkgs-c684c0e82d3af41127e786542bc90221f8cc805a.tar
nixpkgs-c684c0e82d3af41127e786542bc90221f8cc805a.tar.gz
nixpkgs-c684c0e82d3af41127e786542bc90221f8cc805a.tar.bz2
nixpkgs-c684c0e82d3af41127e786542bc90221f8cc805a.tar.lz
nixpkgs-c684c0e82d3af41127e786542bc90221f8cc805a.tar.xz
nixpkgs-c684c0e82d3af41127e786542bc90221f8cc805a.tar.zst
nixpkgs-c684c0e82d3af41127e786542bc90221f8cc805a.zip
mu: add checkInputs
Diffstat (limited to 'pkgs/tools/networking/mu')
-rw-r--r--pkgs/tools/networking/mu/default.nix22
1 files changed, 13 insertions, 9 deletions
diff --git a/pkgs/tools/networking/mu/default.nix b/pkgs/tools/networking/mu/default.nix
index 0fc6d7273ea..33db7b1caba 100644
--- a/pkgs/tools/networking/mu/default.nix
+++ b/pkgs/tools/networking/mu/default.nix
@@ -1,15 +1,17 @@
-{ fetchurl, stdenv, sqlite, pkgconfig, autoreconfHook, pmccabe
+{ stdenv, fetchFromGitHub, sqlite, pkgconfig, autoreconfHook, pmccabe
 , xapian, glib, gmime, texinfo , emacs, guile
 , gtk3, webkitgtk24x, libsoup, icu
 , withMug ? false }:
 
 stdenv.mkDerivation rec {
-  version = "0.9.18";
   name = "mu-${version}";
+  version = "0.9.18";
 
-  src = fetchurl {
-    url = "https://github.com/djcb/mu/archive/${version}.tar.gz";
-    sha256 = "0gfwi4dwqhsz138plryd0j935vx2i44p63jpfx85ki3l4ysmmlwd";
+  src = fetchFromGitHub {
+    owner  = "djcb";
+    repo   = "mu";
+    rev    = version;
+    sha256 = "0zy0p196bfrfzsq8f58xv04rpnr948sdvljflgzvi6js0vz4009y";
   };
 
   # as of 0.9.18 2 tests are failing but previously we had no tests
@@ -19,9 +21,10 @@ stdenv.mkDerivation rec {
 
   # pmccabe should be a checkInput instead, but configure looks for it
   buildInputs = [
-    sqlite xapian glib gmime texinfo emacs guile libsoup icu pmccabe
+    sqlite xapian glib gmime texinfo emacs guile libsoup icu
   ] ++ stdenv.lib.optionals withMug [ gtk3 webkitgtk24x ];
   nativeBuildInputs = [ pkgconfig autoreconfHook ];
+  checkInputs = [ pmccabe ];
 
   doCheck = true;
 
@@ -37,8 +40,9 @@ stdenv.mkDerivation rec {
 
   # Install mug and msg2pdf
   postInstall = stdenv.lib.optionalString withMug ''
-    cp -v toys/msg2pdf/msg2pdf $out/bin/
-    cp -v toys/mug/mug $out/bin/
+    for f in msg2pdf mug ; do
+      install -m755 toys/$f/$f $out/bin/$f
+    done
   '';
 
   meta = with stdenv.lib; {
@@ -46,6 +50,6 @@ stdenv.mkDerivation rec {
     license = licenses.gpl3Plus;
     homepage = "http://www.djcbsoftware.nl/code/mu/";
     platforms = platforms.mesaPlatforms;
-    maintainers = with maintainers; [ antono the-kenny ];
+    maintainers = with maintainers; [ antono the-kenny peterhoeg ];
   };
 }