xidlehook: 0.7.1 -> 0.8.0

This commit is contained in:
Dima 2019-11-23 13:30:22 +01:00
parent 7c5b287ca1
commit 74cd007ad7

View file

@ -1,9 +1,9 @@
{ lib, stdenv, rustPlatform, fetchFromGitLab { lib, stdenv, rustPlatform, fetchFromGitLab, python3
, xlibsWrapper, xorg, libpulseaudio, pkgconfig, patchelf, Security }: , xlibsWrapper, xorg, libpulseaudio, pkgconfig, patchelf, Security }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "xidlehook"; pname = "xidlehook";
version = "0.7.1"; version = "0.8.0";
doCheck = false; doCheck = false;
@ -12,14 +12,14 @@ rustPlatform.buildRustPackage rec {
repo = "xidlehook"; repo = "xidlehook";
rev = version; rev = version;
sha256 = "04bb81iwxznkr1zq1q8dql9qklzm9qy7837a71b02ywp3fc6v5b2"; sha256 = "127b20y86xs2wq5ka236057nyrh87fgzhjqbl6azf002afnbsn5m";
}; };
cargoBuildFlags = lib.optionals (!stdenv.isLinux) ["--no-default-features" "--features" "pulse"]; cargoBuildFlags = lib.optionals (!stdenv.isLinux) ["--no-default-features" "--features" "pulse"];
cargoSha256 = "0xnz2s8vh5njqs4a1qm98ydh8pywxvnnpym0z94fsifyfdjlsfm4"; cargoSha256 = "0jdkcxvlw7s8pz1ka3d2w97356a2axvlwfgyh2dz7nmfzpjx64x0";
buildInputs = [ xlibsWrapper xorg.libXScrnSaver libpulseaudio ] ++ lib.optional stdenv.isDarwin Security; buildInputs = [ xlibsWrapper xorg.libXScrnSaver libpulseaudio ] ++ lib.optional stdenv.isDarwin Security;
nativeBuildInputs = [ pkgconfig patchelf ]; nativeBuildInputs = [ pkgconfig patchelf python3 ];
postFixup = lib.optionalString stdenv.isLinux '' postFixup = lib.optionalString stdenv.isLinux ''
RPATH="$(patchelf --print-rpath $out/bin/xidlehook)" RPATH="$(patchelf --print-rpath $out/bin/xidlehook)"