default.nix (773B)
1 {stdenv, fetchgit, pkgconfig, gobjectIntrospection, gtk3, pango, gdk_pixbuf, atk}: 2 stdenv.mkDerivation rec { 3 name = "gi-server"; 4 5 src = fetchgit { 6 #url = http://logand.com/git/gi-server.git; 7 url = file:///home/tomas/git/gi-server; 8 rev = "7f777e4cdcc6daf9073a8af74b7ebb201cebd7ab"; 9 sha256 = "0pcns4b3lqyg9fnzgjvrm0m9f8qj1fdcwix56mam4ccy0mk5qgm4"; 10 }; 11 12 buildInputs = [pkgconfig gobjectIntrospection gtk3 pango gdk_pixbuf atk]; 13 14 installPhase = '' 15 mkdir -p $out/bin 16 cp ${name} $out/bin/${name} 17 wrapProgram "$out/bin/${name}" \ 18 --prefix GI_TYPELIB_PATH : ("${gtk3}/lib/girepository-1.0" \ 19 + ":${pango}/lib/girepository-1.0" \ 20 + ":${gdk_pixbuf}/lib/girepository-1.0" \ 21 + ":${atk}/lib/girepository-1.0"); 22 ''; 23 }