global: refactor
This commit is contained in:
parent
142b48688c
commit
b8f1d6c9db
@ -1,5 +1,6 @@
|
|||||||
{ fetchurl, stdenv, libtool, ncurses, ctags, sqlite
|
{ fetchurl, stdenv, libtool, makeWrapper
|
||||||
, pythonPackages, makeWrapper }:
|
, coreutils, ctags, ncurses, pythonPackages, sqlite, pkgconfig
|
||||||
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "global-6.4";
|
name = "global-6.4";
|
||||||
@ -9,16 +10,20 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "13i4zwx6gaibc4j79wd0hgxysw8ibxz9c018zxhydnxlyadzcnri";
|
sha256 = "13i4zwx6gaibc4j79wd0hgxysw8ibxz9c018zxhydnxlyadzcnri";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ libtool ncurses makeWrapper ];
|
nativeBuildInputs = [ libtool makeWrapper ];
|
||||||
|
|
||||||
|
buildInputs = [ ncurses ];
|
||||||
|
|
||||||
propagatedBuildInputs = [ pythonPackages.pygments ];
|
propagatedBuildInputs = [ pythonPackages.pygments ];
|
||||||
|
|
||||||
configurePhase =
|
configureFlags = [
|
||||||
'' ./configure --prefix="$out" --disable-static ''
|
"--with-ltdl-include=${libtool}/include"
|
||||||
+ ''--with-posix-sort=$(type -p sort) ''
|
"--with-ltdl-lib=${libtool}/lib"
|
||||||
+ ''--with-ltdl-include=${libtool}/include --with-ltdl-lib=${libtool}/lib ''
|
"--with-ncurses=${ncurses}"
|
||||||
+ ''--with-ncurses=${ncurses} ''
|
"--with-sqlite3=${sqlite}"
|
||||||
+ ''--with-sqlite3=${sqlite} ''
|
"--with-exuberant-ctags=${ctags}/bin/ctags"
|
||||||
+ ''--with-exuberant-ctags=${ctags}/bin/ctags'';
|
"--with-posix-sort=${coreutils}/bin/sort"
|
||||||
|
];
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
@ -34,7 +39,6 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Source code tag system";
|
description = "Source code tag system";
|
||||||
|
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
GNU GLOBAL is a source code tagging system that works the same way
|
GNU GLOBAL is a source code tagging system that works the same way
|
||||||
across diverse environments (Emacs, vi, less, Bash, web browser, etc).
|
across diverse environments (Emacs, vi, less, Bash, web browser, etc).
|
||||||
@ -45,11 +49,8 @@ stdenv.mkDerivation rec {
|
|||||||
independence of any editor. It runs on a UNIX (POSIX) compatible
|
independence of any editor. It runs on a UNIX (POSIX) compatible
|
||||||
operating system like GNU and BSD.
|
operating system like GNU and BSD.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
license = licenses.gpl3Plus;
|
|
||||||
|
|
||||||
homepage = http://www.gnu.org/software/global/;
|
homepage = http://www.gnu.org/software/global/;
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
maintainers = with maintainers; [ pSub ];
|
maintainers = with maintainers; [ pSub ];
|
||||||
platforms = platforms.unix;
|
platforms = platforms.unix;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user