[Nix-dev] Compiling Thunar from git

Strahinja Popovic stralep at gmail.com
Mon Mar 17 18:15:51 CET 2014


> OMG, this thunar expression... that's a completely wrong approach.
>
> You can do it easiest by copying our expression for thunar and doing
> minor changes. You may need to read the basics of nix, e.g. from nix
> manual to manage it, I suppose.
>
> BTW, is there some significant problem with our Thunar that makes you
> try git?

I actually started with copying Thunar from nixpkgs, and
https://nixos.org/wiki/Howto_develop_software_on_nixos#Example_1:_Using_nix-shell_to_Initialize_a_Development_Shell
I have made a small change in Thunar source and I wanted to test it, and it
seems appropriate to do it with git HEAD.

Sergey, I have used your .nix file, and it is still breaking make when in
nix-shell.
However, when using nix-build, it is working until the point when Thunar.1
should be generated. I have added docbook_xsl to buildInputs, but it seems
that it is not in xml catalog.

xsltproc -nonet
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xslThunar.xml
I/O error : Attempt to load network entity
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl

Why is it working for nix-build and not for nix-shell, and how to manage
xml catalog inside build envirioment?


On Mon, Mar 17, 2014 at 2:01 PM, Sergey Mironov <grrwlf at gmail.com> wrote:

> 2014-03-17 16:25 GMT+04:00 Vladimír Čunát <vcunat at gmail.com>:
> > Hi.
> >
> > On 03/17/2014 12:55 PM, Strahinja Popovic wrote:
> >> I have tried all that, it is still not working.
> >> Like it is not looking at all inside dbus_libs package.
> >> I have attached thunar.nix and make output.
> >
> > OMG, this thunar expression... that's a completely wrong approach.
> >
> > You can do it easiest by copying our expression for thunar and doing
> > minor changes. You may need to read the basics of nix, e.g. from nix
> > manual to manage it, I suppose.
> >
> > BTW, is there some significant problem with our Thunar that makes you
> > try git?
> >
>
> IMHO the approach is nice in general. I am thinking about automatic
> generation of expressions having src set to ./. when I need to build
> something from local source. But yes, the initial thunar.nix is
> broken. I've tried to fix it, see the new expression below. It still
> can't build the thunar, but probably it is because of an upstream
> error.
>
> Regards,
> Sergey
>
>
>
>
>
> # thunar.nix
>
> let
>   pkgs = import <nixpkgs> {};
>   inherit (pkgs) xfce;
>   inherit (xfce) thunar;
>   stdenv = pkgs.stdenv;
> in rec {
>   thunarEnv = stdenv.mkDerivation rec {
>     name = "thunar-env";
>     version = "1.1.1.1";
>     src = ./.;
>
>     buildInputs = with pkgs; [
>       pkgconfig intltool
>       gtk dbus_glib libstartup_notification libnotify libexif pcre udev
>       xfce.exo xfce.libxfce4util xfce.xfconf xfce.xfce4panel
>       xfce.xfce4_dev_tools
>       git
>       gtk_doc
>     ];
>
>     preConfigure = ''
>       ./autogen.sh
>     '';
>
>
>   };
>   preFixup = "rm $out/share/icons/hicolor/icon-theme.cache";
> }
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.science.uu.nl/pipermail/nix-dev/attachments/20140317/166abac7/attachment-0001.html 


More information about the nix-dev mailing list