depot/third_party/nixpkgs/pkgs/by-name/pi/pipeline/package.nix
Luke Granger-Brown f92e137cfb
Some checks failed
/ combine-systems (push) Blocked by required conditions
/ build (x86_64-linux) (push) Failing after 11m44s
/ build (aarch64-linux) (push) Failing after 11m50s
/ build (push) Failing after 16m42s
Merge commit '1e2ed035f4bebc9adad02b365508ad96f7df87c1' into HEAD
2025-03-02 02:23:32 +00:00

101 lines
2 KiB
Nix

{
lib,
stdenv,
rustPlatform,
cargo,
rustc,
fetchFromGitLab,
gtk4,
libadwaita,
openssl,
meson,
ninja,
pkg-config,
wrapGAppsHook4,
glib,
appstream-glib,
desktop-file-utils,
blueprint-compiler,
sqlite,
clapper,
gettext,
gst_all_1,
gtuber,
glib-networking,
gnome,
webp-pixbuf-loader,
librsvg,
nix-update-script,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "pipeline";
version = "2.1.1";
src = fetchFromGitLab {
owner = "schmiddi-on-mobile";
repo = "pipeline";
rev = "v${finalAttrs.version}";
hash = "sha256-51ru1L+wxPtrNlnHyTouVxR6oZjanYvCoouB+eNOSD0=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit (finalAttrs) src;
hash = "sha256-G6E+V4hXqz/ec5qKV43IUlwM866iurbptYFxidASJz0=";
};
nativeBuildInputs = [
meson
ninja
cargo
rustPlatform.cargoSetupHook
rustc
pkg-config
wrapGAppsHook4
glib
appstream-glib
desktop-file-utils
blueprint-compiler
];
buildInputs = [
gtk4
libadwaita
openssl
sqlite
clapper
gst_all_1.gstreamer
gst_all_1.gst-libav
gst_all_1.gst-plugins-base
(gst_all_1.gst-plugins-good.override { gtkSupport = true; })
gst_all_1.gst-plugins-bad
gettext
gtuber
glib-networking # For GIO_EXTRA_MODULES. Fixes "TLS support is not available"
];
# Pull in WebP support for YouTube avatars.
# In postInstall to run before gappsWrapperArgsHook.
postInstall = ''
export GDK_PIXBUF_MODULE_FILE="${
gnome._gdkPixbufCacheBuilder_DO_NOT_USE {
extraLoaders = [
webp-pixbuf-loader
librsvg
];
}
}"
'';
passthru.updateScript = nix-update-script { attrPath = finalAttrs.pname; };
meta = {
description = "Watch YouTube and PeerTube videos in one place";
homepage = "https://mobile.schmidhuberj.de/pipeline";
mainProgram = "tubefeeder";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ chuangzhu ];
platforms = lib.platforms.linux;
};
})