mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 00:08:32 +01:00
08be43d6f0
svn path=/nixpkgs/trunk/; revision=23971
41 lines
854 B
Nix
41 lines
854 B
Nix
a :
|
|
let
|
|
fetchurl = a.fetchurl;
|
|
|
|
s = import ./src-for-default.nix;
|
|
buildInputs = with a; [
|
|
perl intltool gettext libusb
|
|
glib pkgconfig
|
|
];
|
|
in
|
|
|
|
assert a.stdenv ? glibc;
|
|
|
|
rec {
|
|
src = a.fetchUrlFromSrcInfo s;
|
|
|
|
inherit buildInputs;
|
|
configureFlags = [];
|
|
|
|
/* doConfigure should be removed if not needed */
|
|
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" ];
|
|
|
|
inherit(s) name;
|
|
meta = {
|
|
description = "Cellphone tool";
|
|
homepage = http://www.gnokii.org;
|
|
maintainers = [a.lib.maintainers.raskin];
|
|
platforms = with a.lib.platforms; linux;
|
|
};
|
|
}
|