-
-
Save jD91mZM2/dc6d10a39dee4f73368c80f376f2a59e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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