uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
91
pkgs/applications/audio/gpodder/default.nix
Normal file
91
pkgs/applications/audio/gpodder/default.nix
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
{ lib, fetchFromGitHub, python3, python3Packages, intltool
|
||||
, glibcLocales, gnome, gtk3, wrapGAppsHook
|
||||
, gobject-introspection
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "gpodder";
|
||||
version = "3.10.21";
|
||||
format = "other";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = pname;
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0n73jm5ypsj962gpr0dk10lqh83giqsczm63wchyhmrkyf1wgga1";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./disable-autoupdate.patch
|
||||
];
|
||||
|
||||
postPatch = with lib; ''
|
||||
sed -i -re 's,^( *gpodder_dir *= *).*,\1"'"$out"'",' bin/gpodder
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
intltool
|
||||
wrapGAppsHook
|
||||
glibcLocales
|
||||
];
|
||||
|
||||
# as of 2021-07, the gobject-introspection setup hook does not
|
||||
# work with `strictDeps` enabled, thus for proper `wrapGAppsHook`
|
||||
# it needs to be disabled explicitly. https://github.com/NixOS/nixpkgs/issues/56943
|
||||
strictDeps = false;
|
||||
|
||||
buildInputs = [
|
||||
python3
|
||||
gtk3
|
||||
gobject-introspection
|
||||
gnome.adwaita-icon-theme
|
||||
];
|
||||
|
||||
checkInputs = with python3Packages; [
|
||||
minimock
|
||||
pytest
|
||||
pytest-httpserver
|
||||
pytest-cov
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
feedparser
|
||||
dbus-python
|
||||
mygpoclient
|
||||
requests
|
||||
pygobject3
|
||||
eyeD3
|
||||
podcastparser
|
||||
html5lib
|
||||
];
|
||||
|
||||
makeFlags = [
|
||||
"PREFIX=$(out)"
|
||||
"share/applications/gpodder-url-handler.desktop"
|
||||
"share/applications/gpodder.desktop"
|
||||
"share/dbus-1/services/org.gpodder.service"
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
export LC_ALL="en_US.UTF-8"
|
||||
'';
|
||||
|
||||
installCheckPhase = ''
|
||||
LC_ALL=C PYTHONPATH=src/:$PYTHONPATH pytest --ignore=tests --ignore=src/gpodder/utilwin32ctypes.py --doctest-modules src/gpodder/util.py src/gpodder/jsonconfig.py
|
||||
LC_ALL=C PYTHONPATH=src/:$PYTHONPATH pytest tests --ignore=src/gpodder/utilwin32ctypes.py --ignore=src/mygpoclient --cov=gpodder
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A podcatcher written in python";
|
||||
longDescription = ''
|
||||
gPodder downloads and manages free audio and video content (podcasts)
|
||||
for you. Listen directly on your computer or on your mobile devices.
|
||||
'';
|
||||
homepage = "http://gpodder.org/";
|
||||
license = licenses.gpl3;
|
||||
platforms = platforms.linux ++ platforms.darwin;
|
||||
maintainers = with maintainers; [ skeidel mic92 ];
|
||||
};
|
||||
}
|
||||
34
pkgs/applications/audio/gpodder/disable-autoupdate.patch
Normal file
34
pkgs/applications/audio/gpodder/disable-autoupdate.patch
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
--- a/share/gpodder/ui/gtk/menus.ui
|
||||
+++ b/share/gpodder/ui/gtk/menus.ui
|
||||
@@ -13,10 +13,6 @@
|
||||
<attribute name="action">app.gotoMygpo</attribute>
|
||||
<attribute name="label" translatable="yes">Go to gpodder.net</attribute>
|
||||
</item>
|
||||
- <item>
|
||||
- <attribute name="action">app.checkForUpdates</attribute>
|
||||
- <attribute name="label" translatable="yes">Software updates</attribute>
|
||||
- </item>
|
||||
</section>
|
||||
<section>
|
||||
<item>
|
||||
--- a/src/gpodder/config.py
|
||||
+++ b/src/gpodder/config.py
|
||||
@@ -94,7 +94,7 @@
|
||||
|
||||
# Software updates from gpodder.org
|
||||
'software_update': {
|
||||
- 'check_on_startup': True, # check for updates on start
|
||||
+ 'check_on_startup': False, # check for updates on start
|
||||
'last_check': 0, # unix timestamp of last update check
|
||||
'interval': 5, # interval (in days) to check for updates
|
||||
},
|
||||
--- a/src/gpodder/gtkui/main.py
|
||||
+++ b/src/gpodder/gtkui/main.py
|
||||
@@ -3445,6 +3445,7 @@
|
||||
If silent=False, a message will be shown even if no updates are
|
||||
available (set silent=False when the check is manually triggered).
|
||||
"""
|
||||
+ return
|
||||
try:
|
||||
up_to_date, version, released, days = util.get_update_info()
|
||||
except Exception as e:
|
||||
Loading…
Add table
Add a link
Reference in a new issue