summary refs log tree commit diff
path: root/pkgs/development/tools/misc/cscope
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-12-11 14:47:16 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-12-11 14:47:16 +0000
commit9976583c97004966dd8d966f0e24b61dd189327a (patch)
tree39fcb464d180f944fb06bf20dd7bcdbb47fe973f /pkgs/development/tools/misc/cscope
parent2ccf2984eb32ef5e3c59befaf47ef1ee8711fe85 (diff)
As agreed with ludo, I remove the getConfig around the cscope expression,
which deals only with a build time dependency. Let's better have hydra
build cscope (I set me as a maintainer), and prefer simpler expressions
to options on build-time dependencies.

svn path=/nixpkgs/trunk/; revision=18902
Diffstat (limited to 'pkgs/development/tools/misc/cscope')
-rw-r--r--pkgs/development/tools/misc/cscope/default.nix16
1 files changed, 8 insertions, 8 deletions
diff --git a/pkgs/development/tools/misc/cscope/default.nix b/pkgs/development/tools/misc/cscope/default.nix
index 305087d59c870..1c6d1dacc7fd6 100644
--- a/pkgs/development/tools/misc/cscope/default.nix
+++ b/pkgs/development/tools/misc/cscope/default.nix
@@ -1,8 +1,4 @@
-{ fetchurl, stdenv, ncurses, pkgconfig
-, installEmacsMode ? false, emacs ? null
-}:
-
-assert installEmacsMode -> emacs != null;
+{ fetchurl, stdenv, ncurses, pkgconfig, emacs}:
 
 stdenv.mkDerivation rec {
   name = "cscope-15.7a";
@@ -21,9 +17,9 @@ stdenv.mkDerivation rec {
 
   configureFlags = "--with-ncurses=${ncurses}";
 
-  buildInputs = [ ncurses pkgconfig ] ++ stdenv.lib.optional installEmacsMode emacs;
+  buildInputs = [ ncurses pkgconfig emacs ];
 
-  postInstall = if installEmacsMode then ''
+  postInstall = ''
     # Install Emacs mode.
     cd "contrib/xcscope"
 
@@ -33,7 +29,7 @@ stdenv.mkDerivation rec {
     ensureDir "$out/share/emacs/site-lisp"
     emacs --batch --eval '(byte-compile-file "xcscope.el")'
     cp xcscope.el{,c} "$out/share/emacs/site-lisp"
-  '' else "";
+  '';
 
   meta = {
     description = "Cscope, a developer's tool for browsing source code";
@@ -49,5 +45,9 @@ stdenv.mkDerivation rec {
     license = "BSD-style";
 
     homepage = http://cscope.sourceforge.net/;
+
+    maintainers = with stdenv.lib.maintainers; [viric];
+
+    platforms = with stdenv.lib.platforms; linux;
   };
 }