@@ -1,14 +1,14 @@
11{ stdenv, fetchFromGitHub, xorg, boost, cmake, gtest }:
22
33stdenv.mkDerivation rec {
4− name = "xlayoutdisplay-${version}";
5− version = "1.0.2";
4+ pname = "xlayoutdisplay";
5+ version = "1.1.0";
66
77 src = fetchFromGitHub {
88 owner = "alex-courtis";
9− repo = "xlayoutdisplay";
9+ repo = pname;
1010 rev = "v${version}";
11− sha256 = "1cqn98lpx9rkfhavbqalaaljw351hvqsrszgqnwvcyq05vq26dwx";
11+ sha256 = "0wm6a48ym0wn2w0872mfq40ghajfrg1bccj1g342w899qh5x3bc4";
1212 };
1313
1414 nativeBuildInputs = [ cmake ];
@@ -23,6 +23,7 @@ stdenv.mkDerivation rec {
2323 --replace 'fprintf(lidStateFile, contents);' \
2424 'fputs(contents, lidStateFile);'
2525
26+ substituteInPlace CMakeLists.txt --replace "set(Boost_USE_STATIC_LIBS ON)" ""
2627 '';
2728
2829 meta = with stdenv.lib; {
@@ -30,5 +31,6 @@ stdenv.mkDerivation rec {
3031 homepage = https://github.com/alex-courtis/xlayoutdisplay;
3132 maintainers = with maintainers; [ dtzWill ];
3233 license = licenses.asl20;
34+ platforms = platforms.linux;
3335 };
3436}