ieda: init at 0-unstable-2024-10-11 (#338769)
[NixPkgs.git] / pkgs / development / tools / click / default.nix
blob97950147254c50a3bd1a42dd1ff6fcdb42f363e8
2   lib,
3   fetchFromGitLab,
4   buildPythonApplication,
5   autoreconfHook,
6   python-debian,
7   perl,
8   vala,
9   pkg-config,
10   libgee,
11   json-glib,
12   properties-cpp,
13   gobject-introspection,
14   getopt,
15   setuptools,
16   pygobject3,
17   wrapGAppsHook3,
20 buildPythonApplication {
21   pname = "click";
22   version = "unstable-2023-02-22";
23   format = "other";
25   src = fetchFromGitLab {
26     owner = "ubports";
27     repo = "development/core/click";
28     rev = "aaf2735e8e6cbeaf2e429c70136733513a81718a";
29     hash = "sha256-pNu995/w3tbz15QQVdVYBnWnAoZmqWj1DN/5PZZ0iZw=";
30   };
32   postPatch = ''
33     # These should be proper Requires, using the header needs their headers
34     substituteInPlace lib/click/click-*.pc.in \
35       --replace 'Requires.private' 'Requires'
36   '';
38   configureFlags = [
39     "--with-systemdsystemunitdir=${placeholder "out"}/lib/systemd/system"
40     "--with-systemduserunitdir=${placeholder "out"}/lib/systemd/user"
41   ];
43   preFixup = ''
44     makeWrapperArgs+=(
45       --prefix LD_LIBRARY_PATH : "$out/lib"
46     )
47   '';
49   preConfigure = ''
50     export click_cv_perl_vendorlib=$out/${perl.libPrefix}
51     export PYTHON_INSTALL_FLAGS="--prefix=$out"
52   '';
54   nativeBuildInputs = [
55     autoreconfHook
56     perl
57     pkg-config
58     gobject-introspection
59     vala
60     getopt
61     wrapGAppsHook3
62   ];
64   # Tests were omitted for time constraint reasons
65   doCheck = false;
67   enableParallelBuilding = true;
69   patches = [
70     # dbus-test-runner not packaged yet, otherwise build-time dependency even when not running tests
71     ./dbus-test-runner.patch
72   ];
74   buildInputs = [
75     libgee
76     json-glib
77     properties-cpp
78   ];
80   propagatedBuildInputs = [
81     python-debian
82     pygobject3
83     setuptools
84   ];
86   meta = {
87     description = "Tool to build click packages. Mainly used for Ubuntu Touch";
88     homepage = "https://gitlab.com/ubports/development/core/click";
89     license = lib.licenses.gpl3Only;
90     maintainers = with lib.maintainers; [
91       ilyakooo0
92       OPNA2608
93     ];
94     platforms = lib.platforms.linux;
95   };