[Nix-dev] muffin build problem

Roelof Wobben rwobben at hotmail.com
Thu Dec 12 17:13:38 CET 2013


When I want to compile muffin I see this message : 

building testasyncgetprop-async-getprop.o
  CC       testasyncgetprop-async-getprop.o
building testasyncgetprop
  CCLD     testasyncgetprop
building muffin.desktop
  ITMRG  muffin.desktop
building muffin-enum-types.h
building Meta-Muffin.0.gir
  GISCAN   Meta-Muffin.0.gir
Couldn't find include 'Clutter-1.0.gir' (search path: ['/nix/store/sjg0j92drrip1pch65srsxa9jw0zq4g6-pkg-config-0.23/share/gir-1.0', '/nix/store/ca8ycvpcbmgjbm90ba0a5ny61kfl12d1-autoconf-2.69/share/gir-1.0', '/nix/store/4bf7jxmqk5sr0i01aw3mb45ikdndr17n-automake-1.12.4/share/gir-1.0', '/nix/store/8hm602sisgk7d45h4d5vvd86d7wf5qp8-libtool-2.4.2/share/gir-1.0', '/nix/store/53z6ln7w4k77r1mmvx7b5ddvjy31468q-glib-2.38.2/share/gir-1.0', '/nix/store/rjf9f02yhr9csagi686s7j3y7kk7dsh3-pcre-8.31/share/gir-1.0', '/nix/store/57613bi2v30m9409wxh0yn8m1nwh0kvs-zlib-1.2.7/share/gir-1.0', '/nix/store/09s63q4j8y16grhnzc53qw5b0y2hbl0q-libffi-3.0.13/share/gir-1.0', '/nix/store/4a338zd6lnn9z5adb82ych3v6yd9wlad-gettext-0.18.1.1/share/gir-1.0', '/nix/store/hnr8kz0r19lxy9n29qsdj4z7hi8w6irw-gnome-common-2.34.0/share/gir-1.0', '/nix/store/25npjmsx9ik5gyqcngga88jz7bg1gjyf-which-2.20/share/gir-1.0', '/nix/store/0d7jmqsqikh771gad0khgg3cxkm821cm-gtk+-3.10.5/share/gir-1.0', '/nix/store/8a6srggy2rdm4pcp266yn46v2rfqj4kp-expat-2.1.0/share/gir-1.0', '/nix/store/da4f8gxvx7cxkhnfxlbb4sisc468g31s-cairo-1.12.16/share/gir-1.0', '/nix/store/dv5m6n5rgm8iim1dxjrm0h9ijy2j702c-freetype-2.4.12/share/gir-1.0', '/nix/store/a5yzq22a6bsqc90kd31jg3yrhp1jk2sk-fontconfig-2.10.2/share/gir-1.0', '/nix/store/bwggyjqk0rl0m2hl2szydjc945sig8cv-xproto-7.0.23/share/gir-1.0', '/nix/store/wvbwyvpcrs3f8is71md3xkhs43bqs9a2-libX11-1.6.1/share/gir-1.0', '/nix/store/qygfzfdly2bziy72k35ijrmxjgllfv1n-libxcb-1.9.1/share/gir-1.0', '/nix/store/bywdcfzrmfwvlzdjqc0v2il4di6sl6ir-kbproto-1.0.6/share/gir-1.0', '/nix/store/zfsnazjp8h3pgq7dchqg4ncyaxzq3inc-libXt-1.1.4/share/gir-1.0', '/nix/store/1wnxm6cy55xd48iplilcah5q7anvyzmp-libSM-1.2.1/share/gir-1.0', '/nix/store/07r82isn68a9x2vvb6zmxjsbn51zxlm2-libICE-1.0.8/share/gir-1.0', '/nix/store/fl997xn4lixvf2pvzb6aywsvlxbla468-libXft-2.3.1/share/gir-1.0', '/nix/store/qj8anic374siqbz3ar9vdggla64zfsrv-libXrender-0.9.8/share/gir-1.0', '/nix/store/6yqayk7wsfa3vihgydfqh1y48x6py1ci-renderproto-0.11.1/share/gir-1.0', '/nix/store/74m6f6x7jnqpddvxj49ik720cp4f1pnp-libXext-1.3.2/share/gir-1.0', '/nix/store/8k5wyfj55kjv9asqz0g7r6x2i98flk6n-libXau-1.0.7/share/gir-1.0', '/nix/store/1fcajcdx86mf6v7ig21pjrmxsadshj62-xextproto-7.2.1/share/gir-1.0', '/nix/store/ph3zm7s49jayc7fixv1jczjy14wbh980-libpng-1.6.7/share/gir-1.0', '/nix/store/2kzxqsflyrgax19xbvs2dvm4kyxs7c4m-damageproto-1.2.1/share/gir-1.0', '/nix/store/fmby6l4ix4spdyk8qq80gd92hxz80n4i-libXfixes-5.0.1/share/gir-1.0', '/nix/store/drkjziqlrg89qijfq65s0l9gx19s61pl-fixesproto-5.0/share/gir-1.0', '/nix/store/4zm70qfra1h560702jq370kzibrg4551-libXxf86vm-1.1.3/share/gir-1.0', '/nix/store/y1mv4lxghxybg4acg7rp7mlyqrlwcqav-pango-1.32.5/share/gir-1.0', '/nix/store/hrdknd115k2pwkx15nxmqbafzlk3c5wm-harfbuzz-0.9.24/share/gir-1.0', '/nix/store/pv1r8rj6d2h6cvmp581rgxl0zd8i656q-graphite2-1.2.3/share/gir-1.0', '/nix/store/idwdga0q449ng4mdb4hcvvfqnsnv1nzh-gdk-pixbuf-2.30.1/share/gir-1.0', '/nix/store/wxngz6r3jn2p6wkx1p6bmmx9gibs2kjv-libtiff-4.0.3/share/gir-1.0', '/nix/store/aa3cck5sipp1k7y6v01j2prq84acgdli-libjpeg-turbo-1.3.0/share/gir-1.0', '/nix/store/vyj1czqc3173cfmg61q1risi13h0jil2-jasper-1.900.1/share/gir-1.0', '/nix/store/z7vy6r98zp6s7047l1211zk406vmqj6x-atk-2.10.0/share/gir-1.0', '/nix/store/7zrmm0f5q4bh38nmygl6dzldz6g78d27-gobject-introspection-1.38.0/share/gir-1.0', '/nix/store/h581qg8gw22pdxcp183nywz7p4mi4b0q-libXrandr-1.4.1/share/gir-1.0', '/nix/store/rjp6p2zkvrn5mpc2wlb641ipr3awalh2-randrproto-1.4.0/share/gir-1.0', '/nix/store/49qc6s4dmgwdnws7fqk2d2i4niibv5ww-libXcomposite-0.4.3/share/gir-1.0', '/nix/store/p01zk2j4zzinsmpg4m1rcf02q4llbapx-compositeproto-0.4.2/share/gir-1.0', '/nix/store/qf9yzs6lhq9r8zkjjxj5ja7k9my2b1m8-libXi-1.7.2/share/gir-1.0', '/nix/store/vh8hp20f6fq8kwqn4ihjnq1ydv1b0wm1-libXcursor-1.1.14/share/gir-1.0', '/nix/store/vyfr59l5lp7z35amm42paarks5kb0wvg-libXinerama-1.1.3/share/gir-1.0', '/nix/store/b2rns3y25qfnxjmhq0dcv7ya0x6k6ggq-cups-1.5.4/share/gir-1.0', '/nix/store/7yvdkklm6as2p56s8zpwch9ks53mj8qm-openssl-1.0.1e/share/gir-1.0', '/nix/store/a1vw87whg150wf56nc5pp1ldi3gmpvn0-intltool-0.50.2/share/gir-1.0', '/nix/store/x39yy4fg60qqgdrjhbwzrjs8r7w5wmzy-perl-5.16.3/share/gir-1.0', '/nix/store/hngs8g5lgn7jahwhi1pngwykm4lcv9zb-perl-XML-Parser-2.36/share/gir-1.0', '/nix/store/kgkd63a3q70jxmwz9p11y143xchph7y4-cinnamon-desktop-2.0.4/share/gir-1.0', '/nix/store/ry69062ybalsd25z5myszjkfh388k53b-cogl-1.16.0/share/gir-1.0', '/nix/store/jm1mxqbg97dsgvmqnsiiqn35r8g5gbla-clutter-1.16.2/share/gir-1.0', '/nix/store/qbbqwh0gx161zsiw9n4nrab6zxapd716-json-glib-0.14.2/share/gir-1.0', '/nix/store/izr1cfjg0nz307knxw49g24njsxqdfw2-zenity-3.4.0/share/gir-1.0', '/nix/store/rs76wbpwa1f6q65ar28630czppgg3811-python-2.7.5/share/gir-1.0', '/nix/store/hh77ms66qb0fvj2q238mcq8zmlx19xc4-gnome-doc-utils-0.20.7/share/gir-1.0', '/nix/store/7zrmm0f5q4bh38nmygl6dzldz6g78d27-gobject-introspection-1.38.0/share/gir-1.0', '/usr/share/gir-1.0', '/nix/store/7zrmm0f5q4bh38nmygl6dzldz6g78d27-gobject-introspection-1.38.0/share/gir-1.0'])
make[4]: *** [Meta-Muffin.0.gir] Error 1
make[4]: Leaving directory `/tmp/nix-build-muffin-2.0.5.drv-0/muffin-2.0.5/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/tmp/nix-build-muffin-2.0.5.drv-0/muffin-2.0.5/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/tmp/nix-build-muffin-2.0.5.drv-0/muffin-2.0.5/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/tmp/nix-build-muffin-2.0.5.drv-0/muffin-2.0.5'
make: *** [all] Error 2
builder for `/nix/store/a8y1fli65vg5k4irdz08x8g275hsxjfh-muffin-2.0.5.drv' failed with exit code 2
error: build of `/nix/store/a8y1fli65vg5k4irdz08x8g275hsxjfh-muffin-2.0.5.drv' failed


My derivation looks like this : 

{stdenv, fetchurl, pkgconfig, autoreconfHook, glib, gettext, gtk3,
gnome_common, makeWrapper, intltool, cinnamon-desktop, gobjectIntrospection,
cogl, clutter, zenity, python, gnome_doc_utils
}:

let
  version = "2.0.5";
in
stdenv.mkDerivation {
  name = "muffin-${version}";

  src = fetchurl {
    url = "http://github.com/linuxmint/muffin/archive/${version}.tar.gz";
    sha256 = "81a57d452ea88ea926b284248033f021960400b3b9d13f5a334a77cf3bd4c7ee";
  };


  configureFlags = "-disable-schemas-install  --disable-static" ;

   buildInputs = [
    pkgconfig autoreconfHook
    glib gettext gnome_common gtk3
    makeWrapper intltool gobjectIntrospection
    cinnamon-desktop cogl clutter zenity
    python gnome_doc_utils
   ];

  preBuild = "patchShebangs ./scripts";


  postInstall  = ''
    ${glib}/bin/glib-compile-schemas $out/share/glib-2.0/schemas/
   
   for f in "$out"/bin/*; do
      wrapProgram "$f" --prefix XDG_DATA_DIRS : 
"$out/share:${cinnamon-desktop}/share"
    done
  '';

  meta = {
    homepage = "http://cinnamon.linuxmint.com";
    description = "The cinnamon settings daemon" ;

    platforms = stdenv.lib.platforms.linux;
    maintainers = [ stdenv.lib.maintainers.roelof ];
  };
}

Roelof

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20131212/72b44edb/attachment.html 


More information about the nix-dev mailing list