depot/third_party/nixpkgs/pkgs/by-name/ga/gabutdm/package.nix
Default email 83627f9931 Project import generated by Copybara.
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
2024-06-24 14:47:55 -04:00

71 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.2.8";
src = fetchFromGitHub {
owner = "gabutakut";
repo = "gabutdm";
rev = version;
hash = "sha256-HF+zBDkA9fYauLUYsvJJxcRggHu+5qH4rm0IM/tL9Hc=";
};
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;
};
}