30 lines
832 B
Nix
30 lines
832 B
Nix
{ stdenv, lib, fetchurl, cmake, extra-cmake-modules, threadweaver, ktexteditor, kdevelop-unwrapped, python }:
|
|
|
|
let
|
|
pname = "kdev-python";
|
|
version = "5.3.2";
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/KDE/${pname}/archive/v${version}.tar.gz";
|
|
sha256 = "0gqv1abzfpxkrf538rb62d2291lmlra8rghm9q9r3x8a46wh96zm";
|
|
};
|
|
|
|
cmakeFlags = [
|
|
"-DBUILD_TESTING=OFF"
|
|
"-DPYTHON_EXECUTABLE=${python}/bin/python"
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake extra-cmake-modules ];
|
|
buildInputs = [ threadweaver ktexteditor kdevelop-unwrapped ];
|
|
|
|
meta = with lib; {
|
|
maintainers = [ maintainers.aanderse ];
|
|
platforms = platforms.linux;
|
|
description = "Python support for KDevelop";
|
|
homepage = https://www.kdevelop.org;
|
|
license = [ licenses.gpl2 ];
|
|
};
|
|
}
|