[Nix-dev] Nix User Guide comments
Clemens Tolboom
ctolboom at home.nl
Mon Feb 20 21:21:30 CET 2006
Hi there,
i'm still stuck at chapter 5 but got (much?) wiser:
LittleWizard needs:
- gtk >= 2.4
- pkgconfig
nixpkgs-0.10pre4851 contains gtkLibs ... how to get gtk?
I did a
$ nix-build ./littlewizard
===== littlewizard,nix =====
(import nixpkgs-0.10pre4851/pkgs/system/i686-linux.nix).littlewizard
===== default.nix =====
{stdenv, fetchurl, perl , gtkLibs}:
stdenv.mkDerivation {
name = "littlewizard-1.1.1";
# builder = ./builder.sh;
src = fetchurl {
url =
http://belnet.dl.sourceforge.net/sourceforge/littlewizard/littlewizard-1.1.1.tar.gz;
md5 = "8d8ddeae00061e04dcaa1c87fb573f42";
};
inherit perl gtkLibs;
# variant
# inherit perl gtk;
}
===== nixpkgs-0.10pre4851/pkgs/system/all-packages-generic.nix =====
--cut--
### GAMES
littlewizard = (import ../games/littlewizard) {
inherit fetchurl stdenv perl;
inherit gtkLibs;
# variant
#1# inherit gtk;
#2# inherit perl gtkLibs pkgconfig
};
--cut--
==============================
I think gtkLibs is a function with ??? gtkLibs.gtk as a result ???
Conclusion:
I don't understand much about chapter 5 ;-(
Who wants to cook my recipe?
Tanx,
Clemens
More information about the nix-dev
mailing list