2023-06-13 05:08:41 +00:00
|
|
|
{ gpodder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, libhandy
|
|
|
|
}:
|
2023-08-12 03:51:22 +00:00
|
|
|
gpodder.overridePythonAttrs (upstream: rec {
|
2023-06-13 05:08:41 +00:00
|
|
|
pname = "gpodder-adaptive";
|
|
|
|
version = "3.11.1+1";
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gpodder";
|
|
|
|
repo = "gpodder";
|
|
|
|
rev = "adaptive/${version}";
|
|
|
|
hash = "sha256-pn5sh8CLV2Civ26PL3rrkkUdoobu7SIHXmWKCZucBhw=";
|
|
|
|
};
|
|
|
|
|
2023-08-12 04:14:47 +00:00
|
|
|
# nixpkgs `gpodder` uses the `format = "other"` Makefile build flow.
|
|
|
|
# upstream specifies a Makefile, and it's just `setup.py` calls plus a few other deps.
|
|
|
|
# however, it calls the build Python, which breaks for cross compilation.
|
|
|
|
# nixpkgs knows how to cross-compile setuptools formats, so use that and only mimic the
|
|
|
|
# parts of the Makefile that aren't part of that.
|
|
|
|
# TODO: upstream this into main nixpkgs `gpodder` package.
|
|
|
|
format = "setuptools";
|
|
|
|
preBuild = ''
|
|
|
|
make \
|
|
|
|
"PREFIX=$(out)" \
|
|
|
|
"share/applications/gpodder-url-handler.desktop" \
|
|
|
|
"share/applications/gpodder.desktop" \
|
|
|
|
"share/dbus-1/services/org.gpodder.service"
|
|
|
|
'';
|
|
|
|
|
2023-06-13 05:08:41 +00:00
|
|
|
buildInputs = upstream.buildInputs ++ [
|
|
|
|
libhandy
|
|
|
|
];
|
|
|
|
})
|