[Nix-dev] how to solve a package depending on another package ?
Rok Garbas
rok at garbas.si
Tue Dec 3 10:18:16 CET 2013
you have to reference to attribute name from all-packages.nix.
i assume you did something along this lines in all-packages.nix::
cinnamon_desktop = callPa.... {};
now in derivartion you depend on it via attribute name.
{stdenv, fetchurl, ..., cinnamon_desktop }:
Quoting Roelof Wobben (2013-12-03 09:38:17)
> Im now trying to port cinnamon-settings-daemon.
> Now this depends on cinnamon-desktop, another derivation I have made.
>
> So I did this :
>
> stdenv, fetchurl, pkgconfig, autoreconfHook, glib, gettext, gnome_common,
> intltool, systemd, hicolor_icon_theme, gtk3, cinnamon-desktop}:
>
> let
> version = "2.0.8";
> in
> stdenv.mkDerivation {
> name = "cinnamon-session-${version}";
>
> src = fetchurl {
> url = "http://github.com/linuxmint/cinnamon-settings-daemon/archive/$
> {version}.tar.gz";
> sha256 = "1zbpr2a7qyh3jzvaa7if4dh258c319aams4gqx3d34xbmhhz12b8";
> };
>
>
> configureFlags = "--enable-systemd --" ;
>
> patches = [ ./keyboard.patch ./automount-plugin.patch];
>
> buildInputs = [
> pkgconfig autoreconfHook
> glib gettext gnome_common
> intltool systemd gtk3
> cinnamon-desktop
> ];
>
> preBuild = "patchShebangs ./scripts";
>
> installPhase = ''
> wrapProgram $out/bin/cinnamon-session \
> --prefix XDG_DATA_DIRS ":" "${hicolor_icon_theme}/share"
> '';
>
> postInstall = ''
> rm $out/share/icons/hicolor/icon-theme.cache
> '';
> meta = {
> homepage = "http://cinnamon.linuxmint.com";
> description = "the cinnamon settings daemon " ;
>
> platforms = stdenv.lib.platforms.linux;
> maintainers = [ stdenv.lib.maintainers.roelof ];
> };
> }
>
> But now I see this message:
>
> error: an anonymous function at `/home/roelof/nixpkgs/pkgs/desktops/cinnamon/
> cinnamon-settings-daemon.nix:1:1' called without required argument
> `cinnamon-desktop'
>
--
Rok Garbas - http://www.garbas.si
More information about the nix-dev
mailing list