Skip to content

Instantly share code, notes, and snippets.

@ijaketak
Created November 12, 2019 14:48
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 ijaketak/98583fd22c506d12af6188ef9a983929 to your computer and use it in GitHub Desktop.
Save ijaketak/98583fd22c506d12af6188ef9a983929 to your computer and use it in GitHub Desktop.
with import <nixpkgs> {};
qt5.mkDerivation rec {
name = "screenrotator-r23";
src = fetchFromGitHub {
owner = "GuLinux";
repo = "ScreenRotator";
rev = "e1de8b72ad5eb9952db45c031e6c3292bfe028d2";
sha256 = "08a3jrgq67iw32dbaqhm2ni0l2bj4fx5jvh7j2b47q02xkai2bn6";
};
meta = {
description = "Automatic screen rotation daemon for X11";
license = "GPL3";
};
nativeBuildInputs = [ extra-cmake-modules qt5.qttools ];
buildInputs = [
qt5.qtbase
qt5.qtsensors
qt5.qtx11extras
xorg.libX11
xorg.libXi
xorg.libXrandr
];
patches = [
./xdg.patch
];
}
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -7,4 +7,3 @@
install(FILES screenrotator.desktop DESTINATION share/applications)
file(GLOB ICON_DIRECTORIES resources/*x*)
install(DIRECTORY ${ICON_DIRECTORIES} resources/scalable DESTINATION share/icons/hicolor/)
-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/screenrotator-autostart.desktop DESTINATION /etc/xdg/autostart/)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment