2023-04-30 00:58:33 +03:00
|
|
|
{ stdenv
|
|
|
|
, desktop-file-utils
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gettext
|
|
|
|
, glib
|
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, python3
|
|
|
|
, rustPlatform
|
2023-06-03 20:11:44 +03:00
|
|
|
, rustc
|
|
|
|
, cargo
|
2023-04-30 00:58:33 +03:00
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "tubefeeder";
|
|
|
|
version = "1.9.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Tubefeeder";
|
|
|
|
repo = "Tubefeeder";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-QB+LGSHwbJWGRx+jsS23B8r6Z43pdh1ECKv2HAb6z8Y=";
|
|
|
|
};
|
|
|
|
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
|
|
inherit src;
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
hash = "sha256-lSaT7k64MKl6WydLDxgxz4Q4QiX0wxHe6vmJ/c4f/Y0=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
desktop-file-utils
|
|
|
|
gettext
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
python3
|
2023-06-03 20:11:44 +03:00
|
|
|
cargo
|
2023-04-30 00:58:33 +03:00
|
|
|
rustPlatform.cargoSetupHook
|
2023-06-03 20:11:44 +03:00
|
|
|
rustc
|
2023-04-30 00:58:33 +03:00
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk4
|
|
|
|
libadwaita
|
|
|
|
openssl
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs build-aux/meson_post_install.py
|
|
|
|
'';
|
2023-04-30 01:16:11 +03:00
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
substituteInPlace $out/share/applications/de.schmidhuberj.tubefeeder.desktop \
|
|
|
|
--replace /app/bin/tubefeeder tubefeeder
|
|
|
|
'';
|
2023-04-30 00:58:33 +03:00
|
|
|
}
|