Created
November 12, 2019 14:48
-
-
Save ijaketak/98583fd22c506d12af6188ef9a983929 to your computer and use it in GitHub Desktop.
Nix expression for https://github.com/GuLinux/ScreenRotator/
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> {}; | |
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 | |
]; | |
} |
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
--- 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