2020-10-06 09:44:25 +02:00
|
|
|
{ stdenv, lib, fetchFromGitHub, cmake, libX11, Cocoa, IOKit, Kernel }:
|
2010-12-22 11:46:57 +01:00
|
|
|
|
2015-12-29 23:52:11 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "ois";
|
2020-10-06 09:44:25 +02:00
|
|
|
version = "1.5";
|
2015-12-29 23:52:11 +01:00
|
|
|
|
2020-10-06 09:44:25 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "wgois";
|
|
|
|
repo = "OIS";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0g8krgq5bdx2rw7ig0xva4kqv4x815672i7z6lljp3n8847wmypa";
|
2015-12-29 23:52:11 +01:00
|
|
|
};
|
2010-12-22 11:46:57 +01:00
|
|
|
|
2020-10-06 09:44:25 +02:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2015-12-29 23:52:11 +01:00
|
|
|
|
2020-10-06 09:44:25 +02:00
|
|
|
buildInputs = [ libX11 ] ++ lib.optionals stdenv.isDarwin [ Cocoa IOKit Kernel ];
|
2013-08-29 14:04:47 +02:00
|
|
|
|
2021-01-21 18:00:13 +01:00
|
|
|
meta = with lib; {
|
2010-12-22 11:46:57 +01:00
|
|
|
description = "Object-oriented C++ input system";
|
2015-12-29 23:52:11 +01:00
|
|
|
maintainers = [ maintainers.raskin ];
|
2020-10-06 09:44:25 +02:00
|
|
|
platforms = platforms.unix;
|
2015-12-29 23:52:11 +01:00
|
|
|
license = licenses.zlib;
|
2010-12-22 11:46:57 +01:00
|
|
|
};
|
2015-12-29 23:52:11 +01:00
|
|
|
}
|