From fff189ae08d8908066356da2da285a18dd9475d7 Mon Sep 17 00:00:00 2001 From: Marc Weber Date: Fri, 21 Sep 2007 21:40:23 +0000 Subject: [PATCH] xclip added svn path=/nixpkgs/trunk/; revision=9355 --- pkgs/tools/misc/xclip/default.nix | 21 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 5 +++++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/tools/misc/xclip/default.nix diff --git a/pkgs/tools/misc/xclip/default.nix b/pkgs/tools/misc/xclip/default.nix new file mode 100644 index 000000000000..01a600c5073c --- /dev/null +++ b/pkgs/tools/misc/xclip/default.nix @@ -0,0 +1,21 @@ +crgs: +args.stdenv.mkDerivation { + name = "xclip-0.08"; + + src = args.fetchurl { + url = http://people.debian.org/~kims/xclip/xclip-0.08.tar.gz; + sha256 = "0py6ijw7ln892gzxxm2w47nn97nb6psb8g6clkpz86gg706yjxpf"; + }; + + patchPhase = "sed -i s=/usr/X11R6/bin=/bin= Makefile"; + + buildInputs =(with args; [x11 libXmu]); + + installPhase="make install DESTDIR=\$out"; + + meta = { + description = "access X clipboard from this console application"; + homepage = http://people.debian.org/~kims/xclip/; + license = "GPL-2"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 89f4faafe94d..35d7c2013e4d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -709,6 +709,11 @@ rec { inherit (xorg) imake; }; + xclip = import ../tools/misc/xclip { + inherit fetchurl stdenv x11; + inherit (xlibs) libXmu; + }; + xmlroff = import ../tools/typesetting/xmlroff { inherit fetchurl stdenv pkgconfig libxml2 libxslt popt; inherit (gtkLibs) glib pango gtk;