diff options
Diffstat (limited to 'nixpkgs/pkgs/development/tools/misc/d-feet/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/tools/misc/d-feet/default.nix | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/tools/misc/d-feet/default.nix b/nixpkgs/pkgs/development/tools/misc/d-feet/default.nix new file mode 100644 index 000000000000..3db895f4de01 --- /dev/null +++ b/nixpkgs/pkgs/development/tools/misc/d-feet/default.nix @@ -0,0 +1,82 @@ +{ lib +, pkg-config +, fetchurl +, meson +, ninja +, glib +, gtk3 +, python3 +, wrapGAppsHook +, gnome +, libwnck +, gobject-introspection +, gettext +, itstool +}: + +python3.pkgs.buildPythonApplication rec { + pname = "d-feet"; + version = "0.3.16"; + + format = "other"; + + src = fetchurl { + url = "mirror://gnome/sources/d-feet/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; + sha256 = "hzPOS5qaVOwYWx2Fv02p2dEQUogqiAdg/2D5d5stHMs="; + }; + + nativeBuildInputs = [ + gettext + gobject-introspection + itstool + meson + ninja + pkg-config + python3 + wrapGAppsHook + ]; + + buildInputs = [ + glib + gnome.adwaita-icon-theme + gtk3 + libwnck + ]; + + propagatedBuildInputs = with python3.pkgs; [ + pygobject3 + ]; + + mesonFlags = [ + "-Dtests=false" # needs dbus + ]; + + # Temporary fix + # See https://github.com/NixOS/nixpkgs/issues/56943 + strictDeps = false; + + postPatch = '' + chmod +x meson_post_install.py + patchShebangs meson_post_install.py + ''; + + passthru = { + updateScript = gnome.updateScript { + packageName = pname; + attrPath = "dfeet"; + versionPolicy = "none"; + }; + }; + + meta = with lib; { + description = "D-Feet is an easy to use D-Bus debugger"; + longDescription = '' + D-Feet can be used to inspect D-Bus interfaces of running programs + and invoke methods on those interfaces. + ''; + homepage = "https://wiki.gnome.org/Apps/DFeet"; + platforms = platforms.linux; + license = licenses.gpl2; + maintainers = with maintainers; [ ktosiek ]; + }; +} |