[Nix-dev] cinnamon-settings-daemon will not compile

Roelof Wobben r.wobben at home.nl
Tue Apr 8 14:29:47 CEST 2014


Helllo,

I have this nix build script :

{ stdenv, fetchurl, pkgconfig, autoreconfHook, glib, gettext, gnome_common, cinnamon-desktop}:

let
   version = "2.0.8";
in
stdenv.mkDerivation {
   name = "cinnamon-settings-daemon-${version}";

   src = fetchurl {
     url = "http://github.com/linuxmint/cinnamon-settings-daemon/archive/${version}.tar.gz";
     sha256 = "0rs5w7npj3wf3gkk3sfb83awk s2h7vjd6cz8mvfgbh6m3grn66l3";
   };


   configureFlags = "--enable-systemd" ;

   patches = [ ./keyboard.patch ./systemd-support.patch ./automount-plugin.patch ./dpms.patch];

   buildInputs = [
     pkgconfig autoreconfHook
     glib gettext gnome_common
     cinnamon-desktop/*gschemas*/
    ];

   preBuild = "patchShebangs ./scripts";


   postFixup  = ''
     rm $out/share/icons/hicolor/icon-theme.cache

     for f in "$out"/bin/*; do
       wrapProgram "$f" --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
     done
   '';

   meta = {
     homepage = "http://cinnamon.linuxmint.com";
     description = "The cinnamon session files" ;

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





and changed all-packages.nix to this ;

cinnamon = recurseIntoAttrs rec {
     callPackage = newScope pkgs.cinnamon;
     inherit (gnome3) gnome_common;

     cinnamon-settings-daemon = callPackage 
../desktops/cinnamon/cinnamon-settings-daemon.nix{ };

     cinnamon-session = callPackage 
../desktops/cinnamon/cinnamon-session.nix{ } ;

     cinnamon-desktop = callPackage 
../desktops/cinnamon/cinnamon-desktop.nix { };

     cinnamon-translations = callPackage 
../desktops/cinnamon/cinnamon-translations.nix { };

     cjs = callPackage ../desktops/cinnamon/cjs.nix { };
   };


but when I do  nix-build -A cinnamon-settings-daeemon in the directory 
which contains the nix file I get a message that default.nix cannot be 
found.

How to solve this ?

Roelof



More information about the nix-dev mailing list