2009-06-10 11:45:03 +02:00
|
|
|
a :
|
|
|
|
let
|
|
|
|
fetchurl = a.fetchurl;
|
|
|
|
|
2009-11-05 23:11:15 +01:00
|
|
|
s = import ./src-for-default.nix;
|
2009-06-10 11:45:03 +02:00
|
|
|
buildInputs = with a; [
|
2009-11-22 20:28:56 +01:00
|
|
|
perl intltool gettext libusb
|
2010-06-05 23:14:41 +02:00
|
|
|
glib pkgconfig
|
2009-06-10 11:45:03 +02:00
|
|
|
];
|
|
|
|
in
|
2010-09-19 20:32:25 +02:00
|
|
|
|
|
|
|
assert a.stdenv ? glibc;
|
|
|
|
|
2009-06-10 11:45:03 +02:00
|
|
|
rec {
|
2009-11-05 23:11:15 +01:00
|
|
|
src = a.fetchUrlFromSrcInfo s;
|
2009-06-10 11:45:03 +02:00
|
|
|
|
|
|
|
inherit buildInputs;
|
|
|
|
configureFlags = [];
|
|
|
|
|
|
|
|
/* doConfigure should be removed if not needed */
|
2010-09-18 18:29:47 +02:00
|
|
|
phaseNames = [ "setDebug" "doConfigure" "doMakeInstall"];
|
|
|
|
|
|
|
|
setDebug = a.fullDepEntry ''
|
|
|
|
mkdir -p $out/src
|
|
|
|
cp -R * $out/src
|
|
|
|
cd $out/src
|
|
|
|
|
|
|
|
export NIX_STRIP_DEBUG=0
|
|
|
|
export CFLAGS="-ggdb -O0 -include ${a.stdenv.glibc}/include/locale.h"
|
|
|
|
export CXXFLAGS="-ggdb -O0"
|
|
|
|
|
|
|
|
'' [ "minInit" "doUnpack" ];
|
2009-06-10 11:45:03 +02:00
|
|
|
|
2009-11-05 23:11:15 +01:00
|
|
|
inherit(s) name;
|
2009-06-10 11:45:03 +02:00
|
|
|
meta = {
|
|
|
|
description = "Cellphone tool";
|
2010-09-27 20:15:33 +02:00
|
|
|
homepage = http://www.gnokii.org;
|
2009-11-05 23:11:15 +01:00
|
|
|
maintainers = [a.lib.maintainers.raskin];
|
|
|
|
platforms = with a.lib.platforms; linux;
|
2009-06-10 11:45:03 +02:00
|
|
|
};
|
|
|
|
}
|