about summary refs log tree commit diff
path: root/pkgs/by-name
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2024-06-20 17:26:12 +0200
committerGitHub <noreply@github.com>2024-06-20 17:26:12 +0200
commitf9666930c66893876161d25771967d4ecc79f2c4 (patch)
tree62f2fb3afbe709f6c36525b516f4a4d0398502a8 /pkgs/by-name
parent4ebb859ea2d91a74197dfa5b6c6e09d2c8a2f235 (diff)
parent676266e8a7daaa9042c03d3d61968af54b5ee78b (diff)
Merge pull request #321222 from Aleksanaa/gabutdm
gabutdm: 2.1.6 -> 2.2.8
Diffstat (limited to 'pkgs/by-name')
-rw-r--r--pkgs/by-name/ga/gabutdm/package.nix71
1 files changed, 71 insertions, 0 deletions
diff --git a/pkgs/by-name/ga/gabutdm/package.nix b/pkgs/by-name/ga/gabutdm/package.nix
new file mode 100644
index 0000000000000..4458efcce5f40
--- /dev/null
+++ b/pkgs/by-name/ga/gabutdm/package.nix
@@ -0,0 +1,71 @@
+{ 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;
+  };
+}