nixpkgs/pkgs/tools/misc/qmake2cmake/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
854 B
Nix
Raw Normal View History

2023-01-18 04:35:19 +00:00
{ lib
, buildPythonPackage
, fetchgit
, packaging
2023-04-24 21:14:24 +00:00
, platformdirs
2023-01-18 04:35:19 +00:00
, portalocker
2023-03-17 06:31:12 +00:00
, pyparsing
2023-01-18 04:35:19 +00:00
, sympy
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "qmake2cmake";
2023-12-25 10:09:22 +00:00
version = "1.0.6";
2023-01-18 04:35:19 +00:00
src = fetchgit {
url = "https://codereview.qt-project.org/qt/qmake2cmake";
rev = "v${version}";
2023-12-25 10:09:22 +00:00
hash = "sha256-M5XVQ8MXo2Yxg5eZCho2YAGFtB0h++mEAg8NcQVuP/w=";
2023-01-18 04:35:19 +00:00
};
patches = [
./fix-locations.patch
];
propagatedBuildInputs = [
packaging
2023-04-24 21:14:24 +00:00
platformdirs
2023-01-18 04:35:19 +00:00
portalocker
2023-03-17 06:31:12 +00:00
pyparsing
2023-01-18 04:35:19 +00:00
sympy
];
nativeCheckInputs = [
2023-01-18 04:35:19 +00:00
pytestCheckHook
];
2023-04-24 21:14:24 +00:00
preCheck = ''
export HOME=$(mktemp -d)
'';
2023-01-18 04:35:19 +00:00
meta = with lib; {
description = "Tool to convert qmake .pro files to CMakeLists.txt";
homepage = "https://wiki.qt.io/Qmake2cmake";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ wegank ];
};
}