diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2019-01-17 21:15:18 +0000 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2019-01-17 21:28:41 +0000 |
commit | d3e3346530570dce9eb7d647aa4c49a3fdd136e2 (patch) | |
tree | 64ae0a723f907ce6a1b3052434552583e405c474 /pkgs/development/libraries/pyotherside | |
parent | d941974d80c2fa5567a4013895b41c2e4b9bfd38 (diff) | |
download | nixpkgs-d3e3346530570dce9eb7d647aa4c49a3fdd136e2.tar nixpkgs-d3e3346530570dce9eb7d647aa4c49a3fdd136e2.tar.gz nixpkgs-d3e3346530570dce9eb7d647aa4c49a3fdd136e2.tar.bz2 nixpkgs-d3e3346530570dce9eb7d647aa4c49a3fdd136e2.tar.lz nixpkgs-d3e3346530570dce9eb7d647aa4c49a3fdd136e2.tar.xz nixpkgs-d3e3346530570dce9eb7d647aa4c49a3fdd136e2.tar.zst nixpkgs-d3e3346530570dce9eb7d647aa4c49a3fdd136e2.zip |
pyotherside: init at 1.5.3
Diffstat (limited to 'pkgs/development/libraries/pyotherside')
-rw-r--r-- | pkgs/development/libraries/pyotherside/default.nix | 29 | ||||
-rw-r--r-- | pkgs/development/libraries/pyotherside/qml-path.patch | 12 |
2 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/libraries/pyotherside/default.nix b/pkgs/development/libraries/pyotherside/default.nix new file mode 100644 index 00000000000..0c2d4fa2b28 --- /dev/null +++ b/pkgs/development/libraries/pyotherside/default.nix @@ -0,0 +1,29 @@ +{ stdenv, fetchFromGitHub +, python3, qmake, qtbase, qtquickcontrols, qtsvg, ncurses }: + +stdenv.mkDerivation rec { + pname = "pyotherside"; + version = "1.5.3"; + + src = fetchFromGitHub { + owner = "thp"; + repo = "pyotherside"; + rev = version; + sha256 = "1xaw1aarj8gpgpm4z3lk8klbssadrsf3xdyzqx10zcwy16amka7k"; + }; + + nativeBuildInputs = [ qmake ]; + buildInputs = [ + python3 qtbase qtquickcontrols qtsvg ncurses + ]; + + patches = [ ./qml-path.patch ]; + installTargets = [ "sub-src-install_subtargets" ]; + + meta = with stdenv.lib; { + description = "Asynchronous Python 3 Bindings for Qt 5"; + homepage = https://thp.io/2011/pyotherside/; + license = licenses.isc; + maintainers = [ maintainers.mic92 ]; + }; +} diff --git a/pkgs/development/libraries/pyotherside/qml-path.patch b/pkgs/development/libraries/pyotherside/qml-path.patch new file mode 100644 index 00000000000..9f720890997 --- /dev/null +++ b/pkgs/development/libraries/pyotherside/qml-path.patch @@ -0,0 +1,12 @@ +diff -Naur --strip-trailing-cr source.org/src/src.pro source/src/src.pro +--- source.org/src/src.pro 1970-01-01 01:00:01.000000000 +0100 ++++ source/src/src.pro 2019-01-17 19:14:46.256821852 +0000 +@@ -10,7 +10,7 @@ + CONFIG += qt plugin + QT += qml quick svg + +-target.path = $$[QT_INSTALL_QML]/$$PLUGIN_IMPORT_PATH ++target.path = $$NIX_OUTPUT_QML/$$PLUGIN_IMPORT_PATH + INSTALLS += target + + qmldir.files += $$_PRO_FILE_PWD_/qmldir $$_PRO_FILE_PWD_/pyotherside.qmltypes |