![Patrick Hilhorst](/assets/img/avatar_default.png)
According to https://repology.org/repository/nix_unstable/problems, we have a lot of packages that have http links that redirect to https as their homepage. This commit updates all these packages to use the https links as their homepage. The following script was used to make these updates: ``` curl https://repology.org/api/v1/repository/nix_unstable/problems \ | jq '.[] | .problem' -r \ | rg 'Homepage link "(.+)" is a permanent redirect to "(.+)" and should be updated' --replace 's@$1@$2@' \ | sort | uniq > script.sed find -name '*.nix' | xargs -P4 -- sed -f script.sed -i ```
89 lines
2.3 KiB
Nix
89 lines
2.3 KiB
Nix
{ stdenv, mkDerivationWith, fetchurl, python3Packages
|
|
, file, intltool, gobject-introspection, libgudev
|
|
, udisks, gexiv2, gst_all_1, libnotify
|
|
, exiftool, gdk-pixbuf, libmediainfo, vmtouch
|
|
}:
|
|
|
|
mkDerivationWith python3Packages.buildPythonApplication rec {
|
|
pname = "rapid-photo-downloader";
|
|
version = "0.9.17";
|
|
|
|
src = fetchurl {
|
|
url = "https://launchpad.net/rapid/pyqt/${version}/+download/${pname}-${version}.tar.gz";
|
|
sha256 = "10vqbi9rcg8r0jxpx2kn8xmahwgdcal28wpix2fg6nkp5rfwxnr6";
|
|
};
|
|
|
|
# Disable version check and fix install tests
|
|
postPatch = ''
|
|
substituteInPlace raphodo/constants.py \
|
|
--replace "disable_version_check = False" "disable_version_check = True"
|
|
substituteInPlace raphodo/rescan.py \
|
|
--replace "from preferences" "from raphodo.preferences"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
file
|
|
intltool
|
|
];
|
|
|
|
# Package has no generally usable unit tests.
|
|
# The included doctests expect specific, hardcoded hardware to be present.
|
|
doCheck = false;
|
|
|
|
# NOTE: Without gobject-introspection in buildInputs, launching fails with
|
|
# "Namespace [Notify / GExiv2 / GUdev] not available"
|
|
buildInputs = [
|
|
gdk-pixbuf
|
|
gexiv2
|
|
gobject-introspection
|
|
gst_all_1.gst-libav
|
|
gst_all_1.gst-plugins-base
|
|
gst_all_1.gst-plugins-good
|
|
gst_all_1.gstreamer
|
|
gst_all_1.gstreamer.dev
|
|
libgudev
|
|
libnotify
|
|
udisks
|
|
];
|
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
pyqt5
|
|
pygobject3
|
|
gphoto2
|
|
pyzmq
|
|
tornado
|
|
psutil
|
|
pyxdg
|
|
arrow
|
|
dateutil
|
|
easygui
|
|
colour
|
|
pymediainfo
|
|
sortedcontainers
|
|
rawkit
|
|
requests
|
|
colorlog
|
|
pyprind
|
|
tenacity
|
|
];
|
|
|
|
preFixup = ''
|
|
makeWrapperArgs+=(
|
|
--set GI_TYPELIB_PATH "$GI_TYPELIB_PATH"
|
|
--set PYTHONPATH "$PYTHONPATH"
|
|
--prefix PATH : "${stdenv.lib.makeBinPath [ exiftool vmtouch ]}"
|
|
--prefix LD_LIBRARY_PATH : "${stdenv.lib.makeLibraryPath [ libmediainfo ]}"
|
|
--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0"
|
|
"''${qtWrapperArgs[@]}"
|
|
)
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Photo and video importer for cameras, phones, and memory cards";
|
|
homepage = https://www.damonlynch.net/rapid/;
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ jfrankenau ];
|
|
};
|
|
}
|