nixpkgs/pkgs/by-name/pa/parabolic/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

78 lines
2.0 KiB
Nix
Raw Normal View History

2024-01-06 13:33:50 +00:00
{ lib
, buildDotnetModule
, fetchFromGitHub
, dotnetCorePackages
, gtk4
, libadwaita
, pkg-config
, wrapGAppsHook4
, glib
, shared-mime-info
, gdk-pixbuf
, blueprint-compiler
, python3
, ffmpeg
}:
buildDotnetModule rec {
pname = "parabolic";
2024-05-19 19:13:23 +00:00
version = "2024.5.0";
2024-01-06 13:33:50 +00:00
src = fetchFromGitHub {
owner = "NickvisionApps";
repo = "Parabolic";
rev = version;
2024-05-19 19:13:23 +00:00
hash = "sha256-awbCn7W7RUSuEByXxLGrsmYjmxCrwywhhrMJq/iM1Uc=";
2024-01-06 13:33:50 +00:00
fetchSubmodules = true;
};
dotnet-sdk = dotnetCorePackages.sdk_8_0;
dotnet-runtime = dotnetCorePackages.runtime_8_0;
pythonEnv = python3.withPackages(ps: with ps; [ yt-dlp ]);
projectFile = "NickvisionTubeConverter.GNOME/NickvisionTubeConverter.GNOME.csproj";
nugetDeps = ./deps.nix;
executables = "NickvisionTubeConverter.GNOME";
nativeBuildInputs = [
pkg-config
wrapGAppsHook4
glib
shared-mime-info
gdk-pixbuf
blueprint-compiler
];
buildInputs = [ gtk4 libadwaita ];
runtimeDeps = [
gtk4
libadwaita
glib
gdk-pixbuf
];
postPatch = ''
substituteInPlace NickvisionTubeConverter.Shared/Linux/org.nickvision.tubeconverter.desktop.in --replace '@EXEC@' "NickvisionTubeConverter.GNOME"
'';
postInstall = ''
install -Dm444 NickvisionTubeConverter.Shared/Resources/org.nickvision.tubeconverter.svg -t $out/share/icons/hicolor/scalable/apps/
install -Dm444 NickvisionTubeConverter.Shared/Resources/org.nickvision.tubeconverter-symbolic.svg -t $out/share/icons/hicolor/symbolic/apps/
install -Dm444 NickvisionTubeConverter.Shared/Linux/org.nickvision.tubeconverter.desktop.in -T $out/share/applications/org.nickvision.tubeconverter.desktop
'';
makeWrapperArgs = [ "--prefix PATH : ${lib.makeBinPath [ pythonEnv ffmpeg ]}" ];
passthru.updateScript = ./update.sh;
meta = with lib; {
description = "Download web video and audio";
homepage = "https://github.com/NickvisionApps/Parabolic";
license = licenses.mit;
maintainers = with maintainers; [ ewuuwe ];
2024-02-03 06:59:40 +00:00
mainProgram = "NickvisionTubeConverter.GNOME";
2024-01-06 13:33:50 +00:00
platforms = platforms.linux;
};
}