Files
nixpkgs/pkgs/by-name/ga/gabutdm/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

73 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
meson,
pkg-config,
ninja,
vala,
wrapGAppsHook4,
desktop-file-utils,
sqlite,
libcanberra,
libsoup_3,
libgee,
json-glib,
qrencode,
curl,
libadwaita,
aria2,
}:
stdenv.mkDerivation rec {
pname = "gabutdm";
version = "2.7.0";
src = fetchFromGitHub {
owner = "gabutakut";
repo = "gabutdm";
rev = version;
hash = "sha256-nzhEJiGBH+semfwLPdpIfPNGQLorqPwwmiAUNM91Br4=";
};
nativeBuildInputs = [
meson
pkg-config
ninja
vala
wrapGAppsHook4
desktop-file-utils
];
buildInputs = [
sqlite
libcanberra
libsoup_3
libgee
json-glib
qrencode
curl
libadwaita
];
postPatch = ''
substituteInPlace meson/post_install.py \
--replace-fail gtk-update-icon-cache gtk4-update-icon-cache
'';
preFixup = ''
gappsWrapperArgs+=(
--prefix PATH : ${lib.makeBinPath [ aria2 ]}
)
'';
meta = with lib; {
description = "Simple and fast download manager";
homepage = "https://github.com/gabutakut/gabutdm";
license = licenses.lgpl21Plus;
mainProgram = "com.github.gabutakut.gabutdm";
maintainers = with maintainers; [ aleksana ];
platforms = platforms.unix;
};
}