2022-08-07 11:01:44 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, wrapGAppsHook4
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, glib
|
|
|
|
, desktop-file-utils
|
|
|
|
, gettext
|
|
|
|
, blueprint-compiler
|
|
|
|
, python3Packages
|
|
|
|
, appstream-glib
|
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
|
|
|
, libportal
|
|
|
|
, libportal-gtk4
|
|
|
|
, gobject-introspection
|
|
|
|
}:
|
2022-07-19 03:58:13 +00:00
|
|
|
|
|
|
|
# Not all parts of the application works with the current nixpkgs version of
|
|
|
|
# libadwaita.
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "adwcustomizer";
|
2022-08-13 14:24:55 +00:00
|
|
|
version = "0.1.0";
|
2022-07-19 03:58:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-08-13 14:24:55 +00:00
|
|
|
owner = "AdwCustomizerTeam";
|
2022-07-19 03:58:13 +00:00
|
|
|
repo = "AdwCustomizer";
|
2022-08-13 14:24:55 +00:00
|
|
|
rev = version;
|
|
|
|
sha256 = "sha256-3VHGk27MIgu+15OQeEmX8zfTCj/TtFtVv3Cf/iXxb/c=";
|
2022-07-19 03:58:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./patches/update-non-flatpak-env.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
format = "other";
|
|
|
|
dontWrapGApps = true;
|
|
|
|
|
2022-08-13 14:24:55 +00:00
|
|
|
postInstall = ''
|
|
|
|
python -m pip install $src/monet/*.whl --no-cache --no-index --no-warn-script-location --prefix="$out" $pipInstallFlags
|
|
|
|
'';
|
|
|
|
|
2022-07-19 03:58:13 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
wrapGAppsHook4
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
desktop-file-utils
|
|
|
|
gettext
|
|
|
|
blueprint-compiler
|
|
|
|
gtk4
|
2022-08-07 11:01:44 +00:00
|
|
|
];
|
|
|
|
|
2022-08-13 14:24:55 +00:00
|
|
|
propagatedNativeBuildInputs = [
|
2022-08-07 11:01:44 +00:00
|
|
|
gobject-introspection
|
|
|
|
appstream-glib
|
|
|
|
glib
|
2022-08-13 14:24:55 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-07-19 03:58:13 +00:00
|
|
|
libadwaita
|
2022-07-27 02:16:16 +00:00
|
|
|
libportal
|
|
|
|
libportal-gtk4
|
2022-08-07 11:01:44 +00:00
|
|
|
] ++ (with python3Packages; [
|
2022-07-19 03:58:13 +00:00
|
|
|
pygobject3
|
2022-07-27 02:16:16 +00:00
|
|
|
anyascii
|
2022-08-13 14:24:55 +00:00
|
|
|
pillow
|
|
|
|
pip
|
|
|
|
regex
|
2022-08-07 11:01:44 +00:00
|
|
|
]);
|
2022-07-19 03:58:13 +00:00
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2022-08-13 14:24:55 +00:00
|
|
|
homepage = "https://github.com/AdwCustomizerTeam/AdwCustomizer";
|
2022-07-19 03:58:13 +00:00
|
|
|
description = "Customize libadwaita and GTK3 apps (with adw-gtk3)";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|