From fa2c22ea97d604dfc9cc3dcf9115eecc6bd021d9 Mon Sep 17 00:00:00 2001 From: "Samuel W. Flint" Date: Mon, 3 Jul 2017 01:46:26 -0500 Subject: [PATCH] x11idle: init at unstable-2017-07-01 (#27062) * Add myself to the maintainers list * Define the derivation for x11idle --- lib/maintainers.nix | 1 + pkgs/tools/misc/x11idle/default.nix | 33 +++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++- 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 pkgs/tools/misc/x11idle/default.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index 711695d7faef..422c86469f8e 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -530,6 +530,7 @@ steveej = "Stefan Junker "; SuprDewd = "Bjarki Ágúst Guðmundsson "; swarren83 = "Shawn Warren "; + swflint = "Samuel W. Flint "; swistak35 = "Rafał Łasocha "; szczyp = "Szczyp "; sztupi = "Attila Sztupak "; diff --git a/pkgs/tools/misc/x11idle/default.nix b/pkgs/tools/misc/x11idle/default.nix new file mode 100644 index 000000000000..5876cfb6b74a --- /dev/null +++ b/pkgs/tools/misc/x11idle/default.nix @@ -0,0 +1,33 @@ +{ stdenv, xlibs, fetchgit, libXScrnSaver, libX11 }: + +stdenv.mkDerivation { + name = "x11idle-unstable-2017-07-01"; + + src = fetchgit { + url = "git://orgmode.org/org-mode.git"; + rev = "fbd865941f3105f689f78bf053bb3b353b9b8a23"; + sha256 = "0ma3m48f4s38xln0gl1ww9i5x28ij0ipxc94kx5h2931zy7lqzvz"; + }; + + buildInputs = [ libXScrnSaver libX11 ]; + + unpackPhase = ":"; + + installPhase = '' + mkdir -p $out/bin + gcc -lXss -lX11 $src/contrib/scripts/x11idle.c -o $out/bin/x11idle + ''; + + meta = with stdenv.lib; { + description = '' + Compute consecutive idle time for current X11 session with millisecond resolution + ''; + longDescription = '' + Idle time passes when the user does not act, i.e. when the user doesn't move the mouse or use the keyboard. + ''; + homepage = "http://orgmode.org/"; + license = licenses.gpl3; + platforms = platforms.linux; + maintainers = [ maintainers.swflint ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d3b82b4be0ae..85f9fc0bf78e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13217,7 +13217,7 @@ with pkgs; audio-recorder = callPackage ../applications/audio/audio-recorder { }; autotrace = callPackage ../applications/graphics/autotrace {}; - + milkytracker = callPackage ../applications/audio/milkytracker { }; schismtracker = callPackage ../applications/audio/schismtracker { }; @@ -18878,6 +18878,8 @@ with pkgs; wxGTK = wxGTK30; }; + x11idle = callPackage ../tools/misc/x11idle {}; + x2x = callPackage ../tools/X11/x2x { }; xboxdrv = callPackage ../misc/drivers/xboxdrv { };