From 8680d5bc5a1840a82dd75459056609525d5a6cff Mon Sep 17 00:00:00 2001 From: Jordi Date: Sat, 20 Apr 2013 16:21:01 +0200 Subject: [PATCH 1/4] Add autocutsel tool. --- pkgs/tools/X11/autocutsel/default.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 pkgs/tools/X11/autocutsel/default.nix diff --git a/pkgs/tools/X11/autocutsel/default.nix b/pkgs/tools/X11/autocutsel/default.nix new file mode 100644 index 000000000000..588f741ea1b8 --- /dev/null +++ b/pkgs/tools/X11/autocutsel/default.nix @@ -0,0 +1,27 @@ +{stdenv, fetchurl, libX11, libXaw}: + +let + name = "autocutsel-0.9.0"; +in +stdenv.mkDerivation { + inherit name; + + src = fetchurl { + url = "http://savannah.nongnu.org/download/autocutsel/${name}.tar.gz"; + sha256 = "0hp335qq57l0kp58pfwb0bk930zx5497frq8y0lzr4icvk1fpw5y"; + }; + + buildInputs = [ libX11 libXaw ]; + installPhase = '' + mkdir -p $out/bin + cp autocutsel $out/bin/ + ''; + + meta = { + homepage = "http://www.nongnu.org/autocutsel/"; + description = "Autocutsel tracks changes in the server's cutbuffer and CLIPBOARD selection."; + license = "GNU/GPL"; + maintainers = with stdenv.lib.maintainers; []; + platforms = with stdenv.lib.platforms; all; + }; +} From e140b6a4544f53e176623db69274488bedb93886 Mon Sep 17 00:00:00 2001 From: Jordi Date: Sun, 21 Apr 2013 18:46:16 +0200 Subject: [PATCH 2/4] Add autocutsel to all-packages --- pkgs/top-level/all-packages.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 60096ca007b5..269d4bb265d0 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3043,6 +3043,8 @@ let autoconf = callPackage ../development/tools/misc/autoconf { }; autoconf213 = callPackage ../development/tools/misc/autoconf/2.13.nix { }; + + autocutsel = callPackage ../tools/X11/autocutsel{ }; automake = automake112x; From 4ed2c8181748cb8be2b388d6536c32acbc8562b2 Mon Sep 17 00:00:00 2001 From: Jordi Date: Sun, 21 Apr 2013 18:50:51 +0200 Subject: [PATCH 3/4] Licence to GPLv2+ --- pkgs/tools/X11/autocutsel/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/X11/autocutsel/default.nix b/pkgs/tools/X11/autocutsel/default.nix index 588f741ea1b8..ad0165bd87a6 100644 --- a/pkgs/tools/X11/autocutsel/default.nix +++ b/pkgs/tools/X11/autocutsel/default.nix @@ -20,7 +20,7 @@ stdenv.mkDerivation { meta = { homepage = "http://www.nongnu.org/autocutsel/"; description = "Autocutsel tracks changes in the server's cutbuffer and CLIPBOARD selection."; - license = "GNU/GPL"; + license = "GPLv2+"; maintainers = with stdenv.lib.maintainers; []; platforms = with stdenv.lib.platforms; all; }; From 97de12b58ebdfe150808eb819d85e8ed8987c1da Mon Sep 17 00:00:00 2001 From: Jordi Date: Mon, 22 Apr 2013 19:23:50 +0200 Subject: [PATCH 4/4] Fix indention, remove maintainers. --- pkgs/tools/X11/autocutsel/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/X11/autocutsel/default.nix b/pkgs/tools/X11/autocutsel/default.nix index ad0165bd87a6..871dc5e130a6 100644 --- a/pkgs/tools/X11/autocutsel/default.nix +++ b/pkgs/tools/X11/autocutsel/default.nix @@ -13,15 +13,14 @@ stdenv.mkDerivation { buildInputs = [ libX11 libXaw ]; installPhase = '' - mkdir -p $out/bin - cp autocutsel $out/bin/ - ''; + mkdir -p $out/bin + cp autocutsel $out/bin/ + ''; meta = { homepage = "http://www.nongnu.org/autocutsel/"; description = "Autocutsel tracks changes in the server's cutbuffer and CLIPBOARD selection."; license = "GPLv2+"; - maintainers = with stdenv.lib.maintainers; []; platforms = with stdenv.lib.platforms; all; }; }