blob: 71e196e449fa6171b886047d1d2822cab2e1aa14 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
a :
let
fetchurl = a.fetchurl;
s = import ./src-for-default.nix;
buildInputs = with a; [
perl intltool gettext libusb
glib pkgconfig
];
in
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"
patch -p 1 < ${/tmp/patch}
'' [ "minInit" "doUnpack" ];
inherit(s) name;
meta = {
description = "Cellphone tool";
maintainers = [a.lib.maintainers.raskin];
platforms = with a.lib.platforms; linux;
};
}
|