about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/editors/kdevelop5/kdev-python.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/editors/kdevelop5/kdev-python.nix')
-rw-r--r--nixpkgs/pkgs/applications/editors/kdevelop5/kdev-python.nix28
1 files changed, 28 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/editors/kdevelop5/kdev-python.nix b/nixpkgs/pkgs/applications/editors/kdevelop5/kdev-python.nix
new file mode 100644
index 000000000000..0567ee39d7dd
--- /dev/null
+++ b/nixpkgs/pkgs/applications/editors/kdevelop5/kdev-python.nix
@@ -0,0 +1,28 @@
+{ stdenv, lib, fetchurl, cmake, extra-cmake-modules, threadweaver, ktexteditor, kdevelop-unwrapped, python }:
+
+stdenv.mkDerivation rec {
+  pname = "kdev-python";
+  version = "5.6.1";
+
+  src = fetchurl {
+    url = "https://github.com/KDE/${pname}/archive/v${version}.tar.gz";
+    sha256 = "1jma7j70imzxlyz8580m79jycif7zphga3zzfmqimn8syzz917hv";
+  };
+
+  cmakeFlags = [
+    "-DPYTHON_EXECUTABLE=${python}/bin/python"
+  ];
+
+  nativeBuildInputs = [ cmake extra-cmake-modules ];
+  buildInputs = [ threadweaver ktexteditor kdevelop-unwrapped ];
+
+  dontWrapQtApps = true;
+
+  meta = with lib; {
+    maintainers = [ maintainers.aanderse ];
+    platforms = platforms.linux;
+    description = "Python support for KDevelop";
+    homepage = "https://www.kdevelop.org";
+    license = [ licenses.gpl2 ];
+  };
+}