diff --git a/pkgs/applications/graphics/imgbrd-grabber/default.nix b/pkgs/applications/graphics/imgbrd-grabber/default.nix new file mode 100644 index 000000000000..994f2a10e6cd --- /dev/null +++ b/pkgs/applications/graphics/imgbrd-grabber/default.nix @@ -0,0 +1,50 @@ +{ stdenv +, cmake +, fetchzip +, openssl +, autoPatchelfHook +, makeWrapper +, qtmultimedia +, wrapQtAppsHook +}: +stdenv.mkDerivation rec { + name = "imgbrd-grabber"; + version = "7.3.2"; + + buildInputs = [ + stdenv.cc.cc.lib + openssl + qtmultimedia + ]; + + nativeBuildInputs = [ + autoPatchelfHook + makeWrapper + wrapQtAppsHook + ]; + + installPhase = '' + mkdir -p $out/share/grabber + cp -R * $out/share/grabber + + mkdir -p $out/bin + ln -s $out/share/grabber/Grabber /$out/bin/grabber + + mkdir -p $out/share/applications + mv $out/share/grabber/Grabber.desktop $out/share/applications/ + + ''; + + src = fetchzip { + url = "https://github.com/Bionus/imgbrd-grabber/releases/download/v${version}/Grabber_v${version}.tar.gz"; + sha256 = "05isnqhvcp8ycaj8hx6wn0c3la729mb36dzpmlpxfb1p5dj8p49k"; + }; + + meta = with stdenv.lib; { + homepage = "https://github.com/Bionus/imgbrd-grabber"; + description = "Very customizable imageboard/booru downloader with powerful filenaming features."; + license = licenses.asl20; + platforms = [ "x86_64-linux" ]; + maintainers = with maintainers; [ evanjs ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 850c4243b0d4..166cf8e079dd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21429,6 +21429,8 @@ in img2pdf = with python3Packages; toPythonApplication img2pdf; + imgbrd-grabber = qt5.callPackage ../applications/graphics/imgbrd-grabber { }; + imgcat = callPackage ../applications/graphics/imgcat { }; imgp = python3Packages.callPackage ../applications/graphics/imgp { };