Skip to content

Instantly share code, notes, and snippets.

@jD91mZM2
Created May 3, 2018 07:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jD91mZM2/dc6d10a39dee4f73368c80f376f2a59e to your computer and use it in GitHub Desktop.
Save jD91mZM2/dc6d10a39dee4f73368c80f376f2a59e to your computer and use it in GitHub Desktop.
with import <nixpkgs>{};
rustPlatform.buildRustPackage rec {
name = "xidlehook-${version}";
version = "0.4.4";
src = fetchFromGitHub {
owner = "jD91mZM2";
repo = "xidlehook";
rev = version;
sha256 = "0mj02w959h0sr8b2r3l54dqn4j3y88xdr434y3jyfqd371kg0i39";
};
cargoSha256 = "0grx7qcyah6xclkl944a4cg4fvmma7k6qnsakwzanwqcv8snkbzg";
buildInputs = [ x11 xorg.libXScrnSaver libpulseaudio ];
propagatedBuildInputs = [ pkgconfig makeWrapper ];
postInstall = ''
wrapProgram $out/bin/xidlehook --prefix LD_LIBRARY_PATH : ${libpulseaudio}/lib
'';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment