[Nix-dev] Compiling Thunar from git
Sergey Mironov
grrwlf at gmail.com
Mon Mar 17 14:01:18 CET 2014
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";
}
More information about the nix-dev
mailing list