Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x11idle: init at unstable-2017-07-01 #27062

Merged
merged 4 commits into from Jul 3, 2017
Merged

Conversation

swflint
Copy link
Contributor

@swflint swflint commented Jul 2, 2017

Motivation for this change

Define the x11idle package from Emacs Org Mode to make use easier.

Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

unpackPhase = ":";
buildInputs = [ xlibs.libXScrnSaver xlibs.libX11 ];
meta = {
description = "Gather the current idle time from X11.";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to read this description two times to figure out what it meant.

Please replace with Compute consecutive idle time duration for current X session of current user with millisecond resolution. In the long description mention that Idle time passes when e.g. the user doesn't move the mouse or uses the keyboard.

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 = stdenv.lib.licenses.free;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

license is gpl3.

@@ -0,0 +1,19 @@
{ stdenv, xlibs, fetchgit }:

stdenv.mkDerivation { name = "x11idle";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Version number is missing in name attribute.

@Mic92 Mic92 changed the title Add x11idle package x11idle: init at unstable-2017-07-01 Jul 3, 2017
@Mic92
Copy link
Member

Mic92 commented Jul 3, 2017

A reference in all-packages.nix is missing.

@Mic92 Mic92 merged commit fa2c22e into NixOS:master Jul 3, 2017
@Mic92
Copy link
Member

Mic92 commented Jul 3, 2017

I squashed my changes with your commits. Note that for commit titles, we have also convention how we name them (ex: x11idle: init at unstable-2017-07-01).

@swflint swflint deleted the add-x11idle-package branch July 3, 2017 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants