diff --git a/pkgs/tools/X11/xnee/default.nix b/pkgs/tools/X11/xnee/default.nix new file mode 100644 index 00000000000..9f9fc7345cf --- /dev/null +++ b/pkgs/tools/X11/xnee/default.nix @@ -0,0 +1,31 @@ +args : +let + fetchurl = args.fetchurl; + lib=args.lib; + + version = lib.getAttr ["version"] "3.01" args; + buildInputs = with args; [ + libX11 xproto libXext xextproto libXtst gtk + libXi inputproto pkgconfig recordproto + ]; +in +rec { + src = fetchurl { + url = "mirror://gnu/xnee/Xnee-${version}.tar.gz"; + sha256 = "1g6wq1hjrmx102gg768nfs8a1ck77g5fn4pmprpsz9123xl4d181"; + }; + + inherit buildInputs; + configureFlags = [ + "--disable-gnome-applet" + ]; + + /* doConfigure should be specified separately */ + phaseNames = ["doConfigure" "doMakeInstall"]; + + name = "xnee-" + version; + meta = { + description = "X event recording and replay tool."; + }; +} + diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 643ae74c194..7247658d386 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7030,6 +7030,13 @@ let pkgs = rec { inherit (xorg) xauth; }; + xnee = builderDefsPackage (import ../tools/X11/xnee) { + inherit (gtkLibs) gtk; + inherit (xlibs) libX11 libXtst xextproto libXext + inputproto libXi xproto recordproto; + inherit pkgconfig; + } null; + xvidcap = import ../applications/video/xvidcap { inherit fetchurl stdenv perl perlXMLParser pkgconfig; inherit (gtkLibs) gtk; diff --git a/pkgs/top-level/template-composing-builder.nix b/pkgs/top-level/template-composing-builder.nix index 346227307a0..f29eef10537 100644 --- a/pkgs/top-level/template-composing-builder.nix +++ b/pkgs/top-level/template-composing-builder.nix @@ -1,15 +1,23 @@ -args : with args; -let version = lib.getAttr ["version"] "" args; in +args : +let + lib = args.lib; + fetchurl = args.fetchurl; + + version = lib.getAttr ["version"] "" args; + buildInputs = with args; [ + + ]; +in rec { src = /* Here a fetchurl expression goes */; - buildInputs = []; + inherit buildInputs; configureFlags = []; /* doConfigure should be specified separately */ phaseNames = ["doMakeInstall"]; - name = "${abort "Specify name"}" + version; + name = "${abort "Specify name"}-" + version; meta = { description = "${abort "Specify description"}"; };