config/packages/apps/tubefeeder/default.nix

65 lines
1.1 KiB
Nix
Raw Normal View History

2023-04-30 00:58:33 +03:00
{ stdenv
, desktop-file-utils
, fetchFromGitHub
, gettext
, glib
, gtk4
, libadwaita
, meson
, ninja
, openssl
, pkg-config
, python3
, rustPlatform
, 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
cargo
2023-04-30 00:58:33 +03:00
rustPlatform.cargoSetupHook
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
}